Merge pull request #1 from walkingwormfood/AWS_test

Renamed main.py to start.py
This commit is contained in:
nnyAkasa 2023-08-23 10:37:55 -05:00 committed by GitHub
commit 2599bddb5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,7 @@ if __name__ == "__main__":
def startup_server(address, port): def startup_server(address, port):
import webbrowser import webbrowser
if os.name == 'nt' and address == '0.0.0.0': if os.name == 'nt' and address == '0.0.0.0':
address = '127.0.0.1' address = '0.0.0.0'
webbrowser.open(f"http://{address}:{port}") webbrowser.open(f"http://{address}:{port}")
call_on_start = startup_server call_on_start = startup_server