Added TCP80 Talker

This commit is contained in:
John W Kerns 2017-09-02 00:09:28 -07:00
parent 6a78dcbb28
commit 171e2669a0
2 changed files with 1 additions and 3 deletions

View file

@ -31,8 +31,6 @@ To enable the use of this service as a simple API, the response to queries is fo
### INSTALL PROCESS ### ### INSTALL PROCESS ###
If you would rather set up your own private instance of CheckMyIP, then you can follow the below instructions to set it up for yourself. If you would rather set up your own private instance of CheckMyIP, then you can follow the below instructions to set it up for yourself.
Change Linux SSH Port to TCP 222 and reboot Change Linux SSH Port to TCP 222 and reboot
``` ```
sudo sed -i --follow-symlinks 's/#Port 22/Port 222/g' /etc/ssh/sshd_config sudo sed -i --follow-symlinks 's/#Port 22/Port 222/g' /etc/ssh/sshd_config

View file

@ -185,7 +185,7 @@ def ssh_talker(client, valdict):
def start(): def start():
talkers = {22: ssh_talker, 23: telnet_talker} talkers = {22: ssh_talker, 23: telnet_talker, 80: telnet_talker}
for talker in talkers: for talker in talkers:
thread = threading.Thread(target=listener, args=(talker, talkers[talker])) thread = threading.Thread(target=listener, args=(talker, talkers[talker]))
thread.daemon = True thread.daemon = True