net: simplify ipToSockaddr
net: simplify ipToSockaddr

Change-Id: I5dbcdf0ee0b46b760b2a7decb1d937aac2a6fa8d
Reviewed-on: https://go-review.googlesource.com/20585
Run-TryBot: Mikio Hara <e2f4d2eec1d9a1f781345cdd7260d7d52e6468ae@gmail.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Ian Lance Taylor <87e9c6d529889242b7e184afb632328636553ab4@golang.org>

suncycheng/go,4ad/go,derekmarcotte/go,4ad/go,golang/go,ImJasonH/go,codestation/go,golang/go,polyverse-security/go,Samurais/go,CAFxX/go,derekmarcotte/go,miolini/go,CAFxX/go,4ad/go,theif519/go,goodlang/good,vanloswang/go,josharian/go,miolini/go,linux-on-ibm-z/go,polyverse-security/go,vsekhar/elastic-go,CAFxX/go,vsekhar/elastic-go,Cofyc/go,ganboing/go-esx,vanloswang/go,goodlang/good,goodlang/good,nawawi/go,4ad/go,golang/go,momchil-velikov/go,christopher-henderson/Go,miolini/go,ganboing/go-esx,akutz/go,momchil-velikov/go,derekmarcotte/go,linux-on-ibm-z/go,akutz/go,momchil-velikov/go,goodlang/good,ImJasonH/go,goodlang/good,vsekhar/elastic-go,theif519/go,CAFxX/go,josharian/go,ganboing/go-esx,theif519/go,codestation/go,ganboing/go-esx,cloudflare/go,codestation/go,ImJasonH/go,Cofyc/go,cloudflare/go,miolini/go,4ad/go,vanloswang/go,linux-on-ibm-z/go,ImJasonH/go,golang/go,suncycheng/go,Samurais/go,ImJasonH/go,CAFxX/go,suncycheng/go,momchil-velikov/go,4ad/go,josharian/go,vsekhar/elastic-go,goodlang/good,Samurais/go,vanloswang/go,codestation/go,suncycheng/go,ImJasonH/go,momchil-velikov/go,suncycheng/go,Cofyc/go,cloudflare/go,theif519/go,codestation/go,momchil-velikov/go,golang/go,polyverse-security/go,nawawi/go,theif519/go,vsekhar/elastic-go,akutz/go,CAFxX/go,ganboing/go-esx,Samurais/go,suncycheng/go,cloudflare/go,akutz/go,Samurais/go,akutz/go,ImJasonH/go,josharian/go,nawawi/go,polyverse-security/go,josharian/go,linux-on-ibm-z/go,linux-on-ibm-z/go,derekmarcotte/go,miolini/go,nawawi/go,vsekhar/elastic-go,polyverse-security/go,golang/go,golang/go,momchil-velikov/go,cloudflare/go,ganboing/go-esx,Cofyc/go,theif519/go,goodlang/good,linux-on-ibm-z/go,akutz/go,linux-on-ibm-z/go,4ad/go,polyverse-security/go,4ad/go,josharian/go,vsekhar/elastic-go,vanloswang/go,linux-on-ibm-z/go,derekmarcotte/go,codestation/go,Samurais/go,josharian/go,CAFxX/go,CAFxX/go,nawawi/go,cloudflare/go,Samurais/go,derekmarcotte/go,nawawi/go,ganboing/go-esx,golang/go,cloudflare/go,nawawi/go,cloudflare/go,suncycheng/go,theif519/go,suncycheng/go,polyverse-security/go,miolini/go,akutz/go,Cofyc/go,nawawi/go,Cofyc/go,akutz/go,miolini/go,ImJasonH/go,codestation/go,Cofyc/go,polyverse-security/go,Samurais/go,vanloswang/go,vanloswang/go,theif519/go,codestation/go,Cofyc/go,ganboing/go-esx,vanloswang/go,momchil-velikov/go,derekmarcotte/go,goodlang/good,miolini/go,josharian/go,vsekhar/elastic-go,derekmarcotte/go