Skip to content
This repository was archived by the owner on Apr 27, 2019. It is now read-only.

Commit 3af9aab

Browse files
committed
Fixed UDP proxying (hopefully)
1 parent c70a828 commit 3af9aab

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

server.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -614,11 +614,8 @@ def buildProtocol(self, address):
614614

615615

616616
class UDPProxy(DatagramProtocol):
617-
client = None
618-
619617
def datagramReceived(self, datagram, addr):
620-
self.client.transport.write(datagram, (self.config.upstream_hostname, self.config.upstream_port))
621-
618+
self.transport.write(datagram, (self.config.upstream_hostname, self.config.upstream_port))
622619

623620
if __name__ == '__main__':
624621
logger = logging.getLogger('starrypy')

0 commit comments

Comments
 (0)