Skip to content

Psiphon library is broken with Go 1.25 #513

@fortuna

Description

@fortuna

I'm getting:

$ go test -C x -tags psiphon -v github.com/Jigsaw-Code/outline-sdk/x/psiphon
panic: tls: ConnectionState is not equal to tls.ConnectionState: struct field count mismatch: 17 vs 16

goroutine 1 [running]:
github.com/Psiphon-Labs/psiphon-tls.init.0()
        /Users/fortuna/go/pkg/mod/github.com/!psiphon-!labs/psiphon-tls@v0.0.0-20250318183125-2a2fae2db378/unsafe.go:44 +0xbc
FAIL    github.com/Jigsaw-Code/outline-sdk/x/psiphon    0.380s
FAIL

Psiphon does some reflection to access internals of the TLS library, and that seems to break. Probably a result of the standard tls library changing.

We need the Psiphon team to make their library work with newer tls library and make it available so we can pull it via go get github.com/Psiphon-Labs/psiphon-tunnel-core@staging-cli

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions