Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 459394 Details for
Bug 604474
FEATURES='network-sandbox' (on client) prevents distcc compilation
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bin/socks5-server.py: convert address from bytes to str
0001-bin-socks5-server.py-convert-address-from-bytes-to-s.patch (text/plain), 887 bytes, created by
Zac Medico
on 2017-01-09 20:23:04 UTC
(
hide
)
Description:
bin/socks5-server.py: convert address from bytes to str
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2017-01-09 20:23:04 UTC
Size:
887 bytes
patch
obsolete
>From d9da8f6860cb61607f64eee070be6cd84ca2fe65 Mon Sep 17 00:00:00 2001 >From: Zac Medico <zmedico@gentoo.org> >Date: Mon, 9 Jan 2017 12:18:58 -0800 >Subject: [PATCH] bin/socks5-server.py: convert address from bytes to str (bug > 604474) > >--- > bin/socks5-server.py | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/bin/socks5-server.py b/bin/socks5-server.py >index cfe3ece..bd9687f 100644 >--- a/bin/socks5-server.py >+++ b/bin/socks5-server.py >@@ -83,6 +83,11 @@ class Socks5Server(object): > data = yield from reader.readexactly(1) > addr_len, = struct.unpack('!B', data) > addr = yield from reader.readexactly(addr_len) >+ try: >+ addr = addr.decode('utf_8') >+ except UnicodeDecodeError: >+ rpl = 0x04 # host unreachable >+ > elif atyp == 0x04: # IPv6 > data = yield from reader.readexactly(16) > addr = socket.inet_ntop(socket.AF_INET6, data) >-- >2.7.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 604474
:
459342
|
459394
|
459804