Skip to content

Commit

Permalink
Merge pull request from GHSA-3f48-9j7q-q2gv
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeryan authored Oct 5, 2023
1 parent 7705b33 commit d2c73b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ni_measurementlink_service/_internal/service_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ def start(
v2_measurement_service_pb2_grpc.add_MeasurementServiceServicer_to_server(
servicer_v2, self.server
)
port = str(self.server.add_insecure_port("[::]:0"))
host = "[::1]"
port = str(self.server.add_insecure_port(f"{host}:0"))
address = f"http://{host}:{port}"
self.server.start()
_logger.info("Measurement service hosted on port: %s", port)
_logger.info("Measurement service listening on: %s", address)
self.discovery_client.register_measurement_service(port, service_info, measurement_info)

self.port = port
Expand Down

0 comments on commit d2c73b1

Please sign in to comment.