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
maint
Junio C Hamano 2025-01-23 15:07:02 -08:00
commit 294673a17e
1 changed files with 2 additions and 2 deletions

View File

@ -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