mirror of
https://github.com/drmext/MonkeyBusiness.git
synced 2026-03-21 09:54:41 -05:00
25 lines
484 B
Python
25 lines
484 B
Python
import socket
|
||
|
||
# https://stackoverflow.com/a/28950776
|
||
def get_ip():
|
||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||
s.settimeout(0)
|
||
try:
|
||
s.connect(("10.254.254.254", 1))
|
||
IP = s.getsockname()[0]
|
||
except Exception:
|
||
IP = "127.0.0.1"
|
||
finally:
|
||
s.close()
|
||
return IP
|
||
|
||
|
||
ip = get_ip()
|
||
port = 8000
|
||
response_compression = False
|
||
verbose_log = True
|
||
|
||
arcade = "M0NKYBUS1N3Z"
|
||
paseli = 10000
|
||
maintenance_mode = False
|