bunkernet - add default api server in jobs

This commit is contained in:
florian 2022-07-19 22:22:55 +02:00
parent 37690a7a4c
commit 80fee58e47
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ def request(method, url, _id=None) :
if _id is not None :
data["id"] = _id
try :
resp = requests.request(method, getenv("BUNKERNET_SERVER") + url, json=data, headers=headers, timeout=5)
resp = requests.request(method, getenv("BUNKERNET_SERVER", "https://api.bunkerweb.io") + url, json=data, headers=headers, timeout=5)
status = resp.status_code
if status == 429 :
return True, 429, "rate limited"

View File

@ -118,4 +118,4 @@ class LinuxTest(Test) :
return run("docker exec linux-" + distro + " /bin/bash -c \"" + cmd_linux + "\"", shell=True)
def docker_cp(distro, src, dst) :
return run("docker cp " + src + " linux-" + distro + ":" + dst, shell=True)
return run("sudo docker cp " + src + " linux-" + distro + ":" + dst, shell=True)