Skip to content

Commit 86d8399

Browse files
committed
fixed some minor issues
1 parent 2162666 commit 86d8399

5 files changed

Lines changed: 5 additions & 2 deletions

File tree

.idea/workspace.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ConfigUpdater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def write_config_to_disk(self, config: Config, encoded_configs: list):
5353
return True
5454

5555
def update_config(self, configstr: str):
56-
with open(self.IPlocation, "r+") as ipfile:
56+
with open(self.IPlocation.strip('"\''), "r+") as ipfile:
5757
ips = self.split_the_ips([line.strip() for line in ipfile])
5858

5959
config = Config(configstr, self.detect_config_protocol(configstr))
61 Bytes
Binary file not shown.
36 Bytes
Binary file not shown.

main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def get_save_location(file_path):
3333
print("You can change This Address in Paths.json")
3434
with open(file_path, "r+") as file:
3535
content = json.load(file)
36+
if not os.path.exists(path_to_save):
37+
os.mkdir(path_to_save)
3638
content["SaveLocation"] = path_to_save
3739
with open(file_path, "w") as file:
3840
json.dump(content, file)
@@ -50,7 +52,7 @@ def split_the_i_ps(listofip):
5052
processDone = False
5153

5254
while not processDone:
53-
choice = input("What do you intend to do? \n 1_ Update V2ray Config\n 2_Change Cloudflare DNS Record IP\n"
55+
choice = input("What do you intend to do? \n 1_ Update V2ray Config\n 2_ Change Cloudflare DNS Record IP\n"
5456
" Enter Here: ").strip()
5557

5658
if choice == "1":

0 commit comments

Comments
 (0)