mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-02-08 01:37:38 +00:00
Замена 127.0.0.1 на 0.0.0.0, удобнее блокировать скрипты
This commit is contained in:
parent
e754739219
commit
04b1b3651e
2
db.py
2
db.py
@ -2,7 +2,7 @@ import os
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
if not os.path.exists('config.json'):
|
if not os.path.exists('config.json'):
|
||||||
db = {"our_port": 0000, "ports": [], "domain": "http://127.0.0.1:8000"}
|
db = {"our_port": 0000, "ports": [], "domain": "http://0.0.0.0:8000"}
|
||||||
js = json.dumps(db, indent=2)
|
js = json.dumps(db, indent=2)
|
||||||
with open("config.json", "w") as outfile:
|
with open("config.json", "w") as outfile:
|
||||||
outfile.write(js)
|
outfile.write(js)
|
||||||
|
Loading…
Reference in New Issue
Block a user