Skip to content

Commit

Permalink
🎨 format
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Sep 8, 2024
1 parent 3b2874c commit 8c95652
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/satori/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
def get_public_ip():
st = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
try:
st.connect(('10.255.255.255', 1))
st.connect(("10.255.255.255", 1))
IP = st.getsockname()[0]
except Exception:
IP = 'localhost'
IP = "localhost"
finally:
st.close()
return IP


if __name__ == '__main__':
print(get_public_ip())
if __name__ == "__main__":
print(get_public_ip()) # noqa: T201

0 comments on commit 8c95652

Please sign in to comment.