Skip to content

Commit

Permalink
Fixed adding hosts from file
Browse files Browse the repository at this point in the history
  • Loading branch information
Hynek Petrak committed Feb 18, 2020
1 parent 09c9e3b commit 8709630
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PROJECT = 'sshame'

VERSION = '0.9'
VERSION = '0.10'

from setuptools import setup, find_packages

Expand Down
6 changes: 3 additions & 3 deletions sshame/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from sqlalchemy import create_engine
from sshame.db import Host, Base, Key, Credential, Command, CommandAlias

version = "0.9"
version = "0.10"

try:
from colorama import Back
Expand Down Expand Up @@ -172,9 +172,9 @@ def add_hosts(hosts, ports=None):
for l in f:
try:
ls = l.strip()
ip = socket.gethostbyname(ls)
#ip = socket.gethostbyname(ls)
# log.info(f"{ls} > {ip}")
hosts.add(ip)
hosts.add(ls)
except Exception as ex:
# log.info(f"{ls} > ")
# log.error(ex)
Expand Down

0 comments on commit 8709630

Please sign in to comment.