[network] force IPv6 bind

This commit is contained in:
Timothée Floure 2024-04-26 11:53:18 +02:00
parent 6780316862
commit d73ac49828
Signed by: tfloure
GPG key ID: 4502C902C00A1E12

View file

@ -30,7 +30,7 @@ if __name__ == '__main__':
# Serve metrics over HTTP. # Serve metrics over HTTP.
print("Starting prometheus-yoctotemp-exporter on port", print("Starting prometheus-yoctotemp-exporter on port",
"{}...".format(HTTP_PORT), end='') "{}...".format(HTTP_PORT), end='')
start_http_server(HTTP_PORT) start_http_server(HTTP_PORT, addr='::')
print(" OK.") print(" OK.")
while sensor.isOnline(): while sensor.isOnline():