Skip to content

Commit 9bd19a8

Browse files
committed
PureVPN generation changes
1 parent 1f90bed commit 9bd19a8

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

libs/generation.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -699,15 +699,20 @@ def generatePureVPN():
699699
geo = geo.replace("(V)", "")
700700
geo = geo.replace("-", " - ")
701701
if virtual_found: geo = geo + " Virtual"
702-
if udp_found: geo = geo + " (UDP)"
703-
if tcp_found: geo = geo + " (TCP)"
702+
tags = ""
703+
if udp_found:
704+
geo = geo + " (UDP)"
705+
tags = "#REMOVE=1"
706+
if tcp_found:
707+
geo = geo + " (TCP)"
708+
tags = "#REMOVE=2"
704709
profile_file = open(profile, 'r')
705710
lines = profile_file.readlines()
706711
profile_file.close()
707712
for line in lines:
708713
if line.startswith("remote "):
709-
_, server, port = line.split()
710-
output_line = geo + "," + server + "," + proto + "," + port + "\n"
714+
_, server, port = line.split()
715+
output_line = geo + "," + server + "," + proto + "," + port + "," + tags + "\n"
711716
location_file.write(output_line)
712717
location_file.close()
713718
generateMetaData("PureVPN", MINIMUM_LEVEL)

0 commit comments

Comments
 (0)