summaryrefslogtreecommitdiff
path: root/lib_autopeer.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib_autopeer.py')
-rw-r--r--lib_autopeer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib_autopeer.py b/lib_autopeer.py
index 84f9a74..cf3b66e 100644
--- a/lib_autopeer.py
+++ b/lib_autopeer.py
@@ -17,7 +17,8 @@ def _get_peer_info(name, asn):
def _get_my_info(asn):
return Peerdata(
asn=MY_ASN,
- port=((int(asn) % 10000) + 20000),
+ # TODO: better port logic
+ port=((int(asn) % 100000)),
ipll=MY_IPLL,
endpoint=MY_ENDPOINT,
pubkey=MY_PUBKEY,