Spaces:
Running
Running
Commit
·
d0ca0a2
1
Parent(s):
c33034e
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,7 @@ _config.set_option("server.port", 7840)
|
|
14 |
args = []
|
15 |
|
16 |
hostname = socket.gethostname()
|
17 |
-
|
18 |
-
ip_address = 'localhost'
|
19 |
application = Flask(__name__)
|
20 |
|
21 |
@application.route('/kangas', strict_slashes=False)
|
|
|
14 |
args = []
|
15 |
|
16 |
hostname = socket.gethostname()
|
17 |
+
ip_address = socket.gethostbyname(hostname)
|
|
|
18 |
application = Flask(__name__)
|
19 |
|
20 |
@application.route('/kangas', strict_slashes=False)
|