Binding to a specific IP address breaks pushing, because localhost is used with curl (OD-2682)
Johan Stuyts opened 2 days ago

If I set http_host in server.properties to a specific IP address instead of 0.0.0.0, pushing is broken. The error is that curl cannot connect to port 6610 on localhost.

I checked the code to see if it was possible to specify multiple bind addresses, but this does not seem to be possible.

In HookUtils#getHookEnvs the configured HTTP port is used to configure the URL, but the host name is hardcoded to localhost. localhost should only be used if http_host equals 0.0.0.0. Otherwise, the configured IP address should be used.

  • Robin Shen commented 2 days ago

    Thanks for reporting the issue. Will bind to 127.0.0.1 in addition to ip address specified in server.properties, as curl sends senstive info and it is only safe for localhost access.

issue 1/1
Type
Bug
Priority
Minor
Assignee
Affected Versions
14.0.8
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-2682
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover