diff --git a/example.conf b/example.conf new file mode 100644 index 0000000..d9965a5 --- /dev/null +++ b/example.conf @@ -0,0 +1,5 @@ +d example.com +s v2ray +e email@domain.tld +u 00000000-0000-0000-0000-000000000000 +p somepath \ No newline at end of file diff --git a/setup.py b/setup.py index fda02f4..e0eb607 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,7 @@ def read_conf(f): f = open(f, "r") lines = f.readlines() for line in lines: + line = line.strip() eline = line.split(' ') if len(eline) >= 2: ret[eline[0]] = eline[1] @@ -43,7 +44,7 @@ def main(): v_path = None try: - opts , args = getopt.getopt(sys.argv[1:], "hd:s:e:c:u:p:") + opts , _ = getopt.getopt(sys.argv[1:], "hd:s:e:c:u:p:") except getopt.GetoptError as err: print(str(err)) usage()