diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-01-23 15:07:02 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-01-23 15:07:02 -0800 |
| commit | 294673a17e818d8a29c8d23b0922855734e1925d (patch) | |
| tree | ca85108c4067818fc213ae10c7bc03335f66fbff | |
| parent | aa31820d9da83cecfb028c76327d74694e3fc11f (diff) | |
| parent | 76baf97fa13c4109c335180b121140c8ba1bf97b (diff) | |
| download | git-294673a17e818d8a29c8d23b0922855734e1925d.tar.gz | |
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
| -rwxr-xr-x | git-instaweb.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-instaweb.sh b/git-instaweb.sh index 5ad50160bb..7b44f70789 100755 --- a/git-instaweb.sh +++ b/git-instaweb.sh @@ -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 |
