Use a subdomain to avoid ouaset DDoS
This commit is contained in:
parent
adb4089c5d
commit
a122d324e3
@ -29,11 +29,11 @@ def hash_bytes(data):
|
||||
return hex_hash
|
||||
|
||||
def current_chunk():
|
||||
r = requests.get("https://virli.nemunai.re/chunk")
|
||||
r = requests.get("https://chunk.virli.nemunai.re/chunk")
|
||||
return r.content.decode()
|
||||
|
||||
def claim_chunk(random_bytes):
|
||||
r = requests.post("https://virli.nemunai.re/chunk",
|
||||
r = requests.post("https://chunk.virli.nemunai.re/chunk",
|
||||
data='{"proof": "' + random_bytes + '", "login": "' + os.environ.get("USER", "nemunaire") + '"}',
|
||||
headers={"Content-Type": "application/json"})
|
||||
return r.content
|
||||
|
Reference in New Issue
Block a user