We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c38dc9b commit fb600bbCopy full SHA for fb600bb
1 file changed
haproxy/src/configure.py
@@ -127,12 +127,12 @@
127
else:
128
for record in records.splitlines():
129
ip = record.split()[0].decode()
130
- ips[ip] = host
+ ips[ip] = (host, port)
131
132
with open('/etc/haproxy/dns.backends', 'w') as bfile:
133
bfile.write(' '.join(sorted(ips)))
134
135
- for ip, host in ips.items():
+ for ip, (host, port) in ips.items():
136
backend_conf += backend_conf_plus.substitute(
137
name=host.replace(".", "-"),
138
index=ip.replace(".", "-"),
0 commit comments