Skip to content

listen address under IPv6 #780

@coelner

Description

@coelner

related to: syncthing/syncthing#7581
related to: syncthing/syncthing#2316
and here: https://github.com/golang/go/blob/d26fc68aa10dc8eda5ccdcc80d790e7df2fd9823/src/net/url/url.go#L223-L235

There ( https://github.com/syncthing/docs/blob/main/users/config.rst?plain=1#L1423 ) could be a hint, that you need to replace the single % with the %25. Especially the link-local IPv6 address needs it.

TCP IPv6 address and port (tcp6://[2001:db8::42]:22000, tcp6://[fe80::42:deff:fed4:b1bd]%25enp0s8)
This results in Syncthing listening on the specified address and port, IPv6
only. In the case of binding to a specific interface, the scope ID is needed and is added after the IPv6 address + #25 + scopeID

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions