Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
cavoq committed Nov 27, 2023
1 parent dd38bc7 commit 3b0e040
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions ntp_amplification.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,10 @@ def parse_args():

def read_servers(server_list: str) -> list:
if not os.path.isfile(server_list):
print("Error: server list file does not exist")
print_formatted("-", "Error: server list file does not exist")
sys.exit(1)

with open(server_list, "r") as f:
servers = f.read().splitlines()

return servers


Expand Down Expand Up @@ -236,7 +234,6 @@ def main():

if args["config"] is not None:
config_path = args["config"]
print(config_path)

if args["server_list"] is not None:
servers = read_servers(args["server_list"])
Expand Down
2 changes: 1 addition & 1 deletion resources/test_ntpd_conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ server europe.pool.ntp.org
server north-america.pool.ntp.org
server 3.europe.pool.ntp.org
server 2.europe.pool.ntp.org
server 1-europe.pool.ntp.org
server 1-europe.pool.ntp.org
2 changes: 1 addition & 1 deletion resources/test_servers.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
192.168.0.1
10.0.0.1
172.16.0.1
172.16.0.1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup

__package__ = "ntp-amplification"
__version__ = "1.5.4"
__version__ = "1.6.0"

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
Expand Down

0 comments on commit 3b0e040

Please sign in to comment.