commit | fbcd5c9bb3627bfe5670b32e988bcc135b5d5707 | [log] [tgz] |
---|---|---|
author | Robert Obryk <robryk@gmail.com> | Sun Apr 27 00:24:21 2014 +0900 |
committer | Mikio Hara <mikioh.mikioh@gmail.com> | Sun Apr 27 00:24:21 2014 +0900 |
tree | 4ad9b8876de36b5c2cbeea384d56c5ba7f0edd2e | |
parent | 4609acedebcfb695a60298639daf4dc7f3c35871 [diff] |
go.net/proxy: don't pass invalid domain name length to SOCKS5 proxies SOCKS5 uses a single-byte field for domain name length. This change causes dials to domain names longer than 255 chars to fail instead of sending an invalid request to the proxy. LGTM=mikioh.mikioh R=golang-codereviews, mikioh.mikioh CC=golang-codereviews https://golang.org/cl/90790044