Skip to content

Commit

Permalink
include source port in hostmasks
Browse files Browse the repository at this point in the history
as described (incorrectly!) in JoinMarket-Org/joinmarket#362 (comment)
  • Loading branch information
adlai authored and AdamISZ committed Dec 1, 2018
1 parent 436a788 commit 1e7976a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miniircd
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ class Client(object):
(self.host, self.port, _, _) = socket.getpeername()
else:
(self.host, self.port) = socket.getpeername()
self.host = "%s.%s" % (self.host, self.port) # joinmarket hostmask hack
self.__timestamp = time.time()
self.__readbuffer = ""
self.__writebuffer = ""
Expand Down

0 comments on commit 1e7976a

Please sign in to comment.