Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hoaxshell.py #18

Merged
merged 1 commit into from
Oct 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion hoaxshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,13 +600,18 @@ def main():

if args.localtunnel or args.ngrok:
tunneling = True

t_process = Tunneling(server_port) #will start tunnel process accordingly

if args.localtunnel:
t_server = t_process.lt_address()

elif args.ngrok:
t_server = t_process.ngrok_address()

if not t_server:
exit_with_msg('Failed to initiate tunnel. Possible cause: You have a tunnel agent session already running in the bg/fg.')


try:
httpd = HTTPServer(('0.0.0.0', server_port), Hoaxshell)

Expand Down