mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-06 20:10:11 +02:00
19 lines
231 B
Go
19 lines
231 B
Go
package netlink
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func FamilyToString(family uint8) string {
|
|
switch family {
|
|
case FamilyAll:
|
|
return "all"
|
|
case FamilyV4:
|
|
return "v4"
|
|
case FamilyV6:
|
|
return "v6"
|
|
default:
|
|
return fmt.Sprint(family)
|
|
}
|
|
}
|