|
|
@ -82,11 +82,10 @@ def server(http_port):
|
|
|
|
conn.send("not_exist".encode())
|
|
|
|
conn.send("not_exist".encode())
|
|
|
|
elif op[:8] == "publish_":
|
|
|
|
elif op[:8] == "publish_":
|
|
|
|
data = op[8:]
|
|
|
|
data = op[8:]
|
|
|
|
site, port = data.split("<>")
|
|
|
|
site, u_port = data.split("<>")
|
|
|
|
site = domain_ok(site)
|
|
|
|
if domain_ok(site):
|
|
|
|
if site:
|
|
|
|
|
|
|
|
conn.send("accepted".encode())
|
|
|
|
conn.send("accepted".encode())
|
|
|
|
client(port, f"get_{site}")
|
|
|
|
client(u_port, f"get_{site}")
|
|
|
|
elif op == "check_all":
|
|
|
|
elif op == "check_all":
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
sites = next(os.walk('cached/'), (None, None, []))[1]
|
|
|
|
sites = next(os.walk('cached/'), (None, None, []))[1]
|
|
|
|