Skip to content

Commit

Permalink
remove syscall.AF_IRDA
Browse files Browse the repository at this point in the history
  • Loading branch information
nakagami committed Jul 29, 2024
1 parent 2f2cac3 commit 0ec686e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (s *Subscription) connAuxRequest() (int32, *netip.AddrPort, error) {
var addr netip.Addr
if family == syscall.AF_INET {
addr = netip.AddrFrom4([4]byte(buf[4:8]))
} else if family == syscall.AF_INET6 || family == syscall.AF_IRDA {
} else if family == syscall.AF_INET6 {
if reflect.DeepEqual(buf[4:20], []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff}) {
addr = netip.AddrFrom4([4]byte(buf[20:24]))
} else {
Expand Down

0 comments on commit 0ec686e

Please sign in to comment.