Update mw.py

pull/109/head
midoks 4 years ago
parent 5b4951bbe3
commit ca73fcc31b
  1. 2
      class/core/mw.py

@ -882,7 +882,7 @@ def get_string_arr(t):
def getSSHPort():
try:
file = '/etc/ssh/sshd_config'
conf = ReadFile(file)
conf = readFile(file)
rep = "#*Port\s+([0-9]+)\s*\n"
port = re.search(rep, conf).groups(0)[0]
return int(port)

Loading…
Cancel
Save