Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix panic when interface not set in Solaris netstat -rn output #42

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

sot-tech
Copy link

@sot-tech sot-tech commented Mar 6, 2024

Interface name for default route may be omitted (i.e. if set in /etc/defaultrouter)

github.com/jackpal/gateway.parseNetstatToRouteStruct({0xc001226000, 0x3e9, 0xc0008f2000?})
	github.com/jackpal/gateway@v1.0.13/gateway_parsers.go:394 +0x605
github.com/jackpal/gateway.parseUnixGatewayIP({0xc001226000?, 0x6c2e313234373532?, 0x6264?})
	github.com/jackpal/gateway@v1.0.13/gateway_parsers.go:355 +0x1c
github.com/jackpal/gateway.discoverGatewayOSSpecific()
	github.com/jackpal/gateway@v1.0.13/gateway_solaris.go:22 +0x2a
github.com/jackpal/gateway.DiscoverGateway(...)
	github.com/jackpal/gateway@v1.0.13/gateway.go:46

See: syncthing/syncthing#9453

Interface name for default route may be omitted (i.e. if set in /etc/defaultrouter)
@jackpal jackpal merged commit 99e9148 into jackpal:master Mar 6, 2024
@jackpal
Copy link
Owner

jackpal commented Mar 6, 2024

Thanks!

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.

None yet

2 participants