Skip to content

fix: port80 listener toggle and default site routing on HTTP#1184

Open
yannickid wants to merge 1 commit into
tobychui:mainfrom
yannickid:fix/port80-listener-and-default-site
Open

fix: port80 listener toggle and default site routing on HTTP#1184
yannickid wants to merge 1 commit into
tobychui:mainfrom
yannickid:fix/port80-listener-and-default-site

Conversation

@yannickid

Copy link
Copy Markdown

Bug Fixes

Bug 1: Port 80 listener toggle reports "already used" incorrectly

When Zoraxy itself holds port 80, the toggle to enable the HTTP
listener is greyed out with "Port 80 is already used by other services".
The check now correctly ignores Zoraxy's own listener.

Fix: reverseproxy.go:1569
if netutils.CheckIfPortOccupied(80) && !dynamicProxyRouter.GetPort80ListenerState()

Bug 2: Default Site ignored for unknown domains on port 80

When Force HTTPS is disabled, requests from unknown domains on port 80
always returned 404 NOT FOUND, ignoring the configured Default Site
option (Static Web Server, Redirect, etc.).

Fix: mod/dynamicproxy/dynamicproxy.go:167
router.mux.ServeHTTP(w, r) instead of http.NotFound(w, r)

Testing

  • Enable HTTP listener on port 80 works even when Zoraxy holds port 80
  • Unknown domains on port 80 correctly route to configured Default Site

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant