alex opened 2 years ago
No description
|
|||||
OneDev does not have any special requirement on ipv4/ipv6. Please test and report any issues if there is. |
|||||
IPV4
debug1: Connection established. .... debug1: Authenticating to 192.168.1.2:6611 as 'myname' IPV6
debug1: Connection established. ... kex_exchange_identification: read: Connection reset by peer https://serverfault.com/questions/827034/apache-web-server-is-listening-on-ipv6-type |
|||||
OneDev.java
|
|||||
Thanks for investigation. 👍 |
|||||
This line of code guesses server url and uses the value "0.0.0.0" is not an appropriate default here. If localhost does not work for your case, just change the serverUrl property in administration/system setting menu. Let me know if you encounter any other ipv6 issues. |
|||||
I didn't analyze the code in detail. jetty needs to bind the port to 0.0.0.0 when it starts. The host has set net.ipv4.ip_forward. When the request is accessed from the host node's IPv6 address, it is forwarded to the in-container ipv4 address. If in-container jetty is bound port to Loopback Address, the address is not reachable. |
|||||
Got time to test ipv6 and everything works fine including ssh clone. What I am doing:
This is expected, as when running as docker container, the port 6610/6611 will bind to all addresses, including ipv6 address. And docker daemon also has no problem forwarding ipv6 traffic to Jetty running inside the container. |
|||||
Robin Shen changed state to 'Closed' 2 years ago
|
|||||
Closing. Feel free to reopen if you have other concerns. |
Type |
Question
|
Priority |
Normal
|
Assignee |