feat: 🎸 使用ubuntu镜像,修复ping不通的bug

This commit is contained in:
root
2022-04-14 14:15:48 +08:00
parent bc70c90547
commit 1177c234e4
5 changed files with 44 additions and 40 deletions

View File

@@ -10,7 +10,7 @@ def get_moon():
def get_patch():
with open("/opt/patch/patch.json", "r") as f:
with open("/app/patch/patch.json", "r") as f:
return json.load(f)
@@ -39,7 +39,7 @@ def patch():
text += f'\n roots.back().stableEndpoints.push_back(InetAddress("{i}"));'
# 生成文件
with open("/opt/patch/mkworld.cpp", "r") as cpp:
with open("/app/patch/mkworld.cpp", "r") as cpp:
world = "".join(cpp.readlines())
world = world.replace("//__PATCH_REPLACE__", text)