Skip to content

Commit

Permalink
Use IANA assigned UDP port number for SCTP/UDP
Browse files Browse the repository at this point in the history
This allows Wireshark to detect SCTP automatically.
  • Loading branch information
tuexen authored and Sean-Der committed Aug 8, 2023
1 parent 7522d27 commit d5f5196
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/ping-pong/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

func main() {
conn, err := net.Dial("udp", "127.0.0.1:5678")
conn, err := net.Dial("udp", "127.0.0.1:9899")
if err != nil {
log.Panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/ping-pong/pong.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
func main() {
addr := net.UDPAddr{
IP: net.IPv4(127, 0, 0, 1),
Port: 5678,
Port: 9899,
}

conn, err := net.ListenUDP("udp", &addr)
Expand Down

0 comments on commit d5f5196

Please sign in to comment.