Browse Source

Update Update-Public-IP.py

master
Chase Hall 5 months ago
committed by GitHub
parent
commit
87b4e340da
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      Update-Public-IP.py

+ 5
- 1
Update-Public-IP.py View File

@ -10,6 +10,10 @@
# into
# "IPAddress": "99.88.123.456",
#
# This *won't* modify other IPs, only the first one it will replace.
# If you have multiple IPs ["123.123.123.123", "456.456.456.456", "127.0.0.1"]
# It'll only pick up the first one, and replace that throughout.
# This is useful since I *do* host game servers on 127.0.0.1 of that box & don't want it to be replaced.
#
# Variables, feel free to change me.
@ -46,4 +50,4 @@ writing_file.write(new_file_content)
writing_file.close()
myfile.close()
ip1.close()
fp.close()
fp.close()

Loading…
Cancel
Save