Skip to content

Commit

Permalink
Merge branch 'ak/instaweb-python-port-binding-fix' into next
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gitster committed Jan 17, 2025
2 parents afa4654 + 76baf97 commit bcb5e21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-instaweb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,9 @@ class GitWebRequestHandler(CGIHTTPRequestHandler):
return result
bind = "127.0.0.1"
bind = "0.0.0.0"
if "$local" == "true":
bind = "0.0.0.0"
bind = "127.0.0.1"
# Set our http root directory
# This is a work around for a missing directory argument in older Python versions
Expand Down

0 comments on commit bcb5e21

Please sign in to comment.