[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
1 changed files with 1 additions and 1 deletions

View File

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