Skip to content

Commit 294673a

Browse files
committed
Merge branch 'ak/instaweb-python-port-binding-fix'
The "instaweb" bound only to local IP address without "--local" and to all addresses with "--local", which was the other way around, when using Python's http.server class, which has been corrected. * ak/instaweb-python-port-binding-fix: instaweb: fix ip binding for the python http.server
2 parents aa31820 + 76baf97 commit 294673a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-instaweb.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,9 @@ class GitWebRequestHandler(CGIHTTPRequestHandler):
694694
return result
695695
696696
697-
bind = "127.0.0.1"
697+
bind = "0.0.0.0"
698698
if "$local" == "true":
699-
bind = "0.0.0.0"
699+
bind = "127.0.0.1"
700700
701701
# Set our http root directory
702702
# This is a work around for a missing directory argument in older Python versions

0 commit comments

Comments
 (0)