Skip to content

fix skysocks whitelist#2212

Merged
0pcom merged 3 commits intoskycoin:developfrom
0pcom:add-micro-editor
Mar 14, 2026
Merged

fix skysocks whitelist#2212
0pcom merged 3 commits intoskycoin:developfrom
0pcom:add-micro-editor

Conversation

@0pcom
Copy link
Collaborator

@0pcom 0pcom commented Mar 14, 2026

No description provided.

0pcom added 3 commits March 13, 2026 19:45
The getRemotePK function called appnet.WrapConn which uses ConvertAddr,
but ConvertAddr only handles dmsg.Addr and routing.Addr types. Connections
from the app framework already use appnet.Addr, hitting the default case
and returning "addr type is unknown", causing all whitelist connections
to be rejected. Fix by asserting appnet.Addr directly first.
Whitelist-protected skysocks servers are not public and should not
register in service discovery, matching the existing passcode behavior.
…tion

Vendor skycoin commit 184fef102ebb365b646567f4cd4f8eee5fbaeceb.
Fix VPN server getRemotePK having the same appnet.Addr type assertion
bug as skysocks - WrapConn/ConvertAddr doesn't handle appnet.Addr,
causing all whitelist connections to be rejected.
@0pcom 0pcom force-pushed the add-micro-editor branch from 40bc9b5 to 2971bee Compare March 14, 2026 00:45
@0pcom 0pcom merged commit 8cdc4b0 into skycoin:develop Mar 14, 2026
3 checks passed
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