Замена 127.0.0.1 на 0.0.0.0, удобнее блокировать скрипты

This commit is contained in:
justuser 2024-06-20 21:01:46 +03:00
parent e754739219
commit 04b1b3651e

2
db.py
View File

@ -2,7 +2,7 @@ import os
import 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)
with open("config.json", "w") as outfile:
outfile.write(js)