Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 604474 | Differences between
and this patch

Collapse All | Expand All

(-)a/bin/socks5-server.py (-1 / +5 lines)
Lines 83-88 class Socks5Server(object): Link Here
83
				data = yield from reader.readexactly(1)
83
				data = yield from reader.readexactly(1)
84
				addr_len, = struct.unpack('!B', data)
84
				addr_len, = struct.unpack('!B', data)
85
				addr = yield from reader.readexactly(addr_len)
85
				addr = yield from reader.readexactly(addr_len)
86
				try:
87
					addr = addr.decode('idna')
88
				except UnicodeDecodeError:
89
					rpl = 0x04  # host unreachable
90
86
			elif atyp == 0x04:  # IPv6
91
			elif atyp == 0x04:  # IPv6
87
				data = yield from reader.readexactly(16)
92
				data = yield from reader.readexactly(16)
88
				addr = socket.inet_ntop(socket.AF_INET6, data)
93
				addr = socket.inet_ntop(socket.AF_INET6, data)
89
- 

Return to bug 604474