Skip to content

Commit

Permalink
Show Ip at cli
Browse files Browse the repository at this point in the history
  • Loading branch information
User committed Apr 16, 2017
1 parent fce8aae commit 90a592a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vpnproxy_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __str__(self):
uptime = datetime.timedelta(milliseconds=int(self.uptime))
uptime = re.split(',|\.', str(uptime))[0]
txt = [self.country_short, str(self.ping), '%.2f' % speed, uptime, self.logPolicy, str(self.score), self.proto,
self.port]
self.ip, self.port]
txt = [dta.center(spaces[ind + 1]) for ind, dta in enumerate(txt)]
return ''.join(txt)

Expand Down Expand Up @@ -421,8 +421,8 @@ def vpn_manager(ovpn):
dns_manager()
ranked, vpn_list = refresh_data()

labels = ['Index', 'Country', 'Ping', 'Speed', 'Up time', 'Log Policy', 'Score', 'protocol', 'Portal']
spaces = [6, 7, 6, 10, 10, 10, 10, 8, 8]
labels = ['Idx', 'Geo', 'Ping', 'Speed', 'Up', 'Log', 'Score', 'proto', 'Ip', 'Port']
spaces = [5, 5, 7, 8, 8, 8, 8, 5, 19, 6]
labels = [label.center(spaces[ind]) for ind, label in enumerate(labels)]
connected_servers = []

Expand Down

0 comments on commit 90a592a

Please sign in to comment.