From 087c0c14994b1ef7010e7cdccc8a05d779f21880 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 13 Mar 2018 09:02:34 +0100 Subject: [PATCH] refine address family type --- common/net/address.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/net/address.go b/common/net/address.go index 6ab0587f4..04d40f0c7 100644 --- a/common/net/address.go +++ b/common/net/address.go @@ -22,7 +22,7 @@ var ( ) // AddressFamily is the type of address. -type AddressFamily int +type AddressFamily byte const ( // AddressFamilyIPv4 represents address as IPv4