Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
re6stnet
Commits
1adefd5d
Commit
1adefd5d
authored
Mar 27, 2021
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
same_country: fix UnicodeEncodeError in Peer.encode
parent
ecda9f06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
re6st/tunnel.py
re6st/tunnel.py
+1
-1
No files found.
re6st/tunnel.py
View file @
1adefd5d
...
@@ -230,7 +230,7 @@ class BaseTunnelManager(object):
...
@@ -230,7 +230,7 @@ class BaseTunnelManager(object):
country
=
database
.
Reader
(
db
).
country
country
=
database
.
Reader
(
db
).
country
def
geoiplookup
(
ip
):
def
geoiplookup
(
ip
):
try
:
try
:
return
country
(
ip
).
country
.
iso_code
return
country
(
ip
).
country
.
iso_code
.
encode
()
except
errors
.
AddressNotFoundError
:
except
errors
.
AddressNotFoundError
:
return
return
self
.
_geoiplookup
=
geoiplookup
self
.
_geoiplookup
=
geoiplookup
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment