fiorix / go-diameter

Diameter stack and Base Protocol (RFC 6733) for the Go programming language
Other
252 stars 143 forks source link

diam_sctp_client is crashing on connection #170

Closed rudchenkos closed 1 year ago

rudchenkos commented 2 years ago

The example SCTP client is crashing with on a type cast when a connection is accepted:

$ ./main --addr=127.0.0.1:3868
2022/09/14 10:02:05 Connecting to SCTP server at 127.0.0.1:3868
panic: interface conversion: net.Conn is *diam.SCTPConn, not *sctp.SCTPConn

goroutine 1 [running]:
main.main()
        /home/sergii/devel/go-diameter/examples/diam_sctp_client/main.go:58 +0x792