Commit f60fc811 authored by aoh's avatar aoh
Browse files

Describe request_address in LysDnsUpdater.py


Signed-off-by: aoh's avataraoh <aoh@lysator.liu.se>
parent 690c094e
......@@ -9,6 +9,9 @@ import ip_query_pb2
MAX_MSG_LEN = 512
def request_address(address, port, cert):
"""
This function obtains the external ip address of the current machine.
"""
msg = ip_query_pb2.Query()
connection = ssl.wrap_socket(socket.create_connection((address, port,)),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment