Skip to content

Commit

Permalink
Add account username as port derivation component
Browse files Browse the repository at this point in the history
The port number on which the Ikabot Web Server would run on used to be derived from the lobby account email, and the world server host address. This commit adds the world server account username as a derivation component to the port number.
  • Loading branch information
ikagod authored Jun 18, 2024
1 parent 653ddc2 commit f793ef5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ikabot/function/webServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def is_port_in_use(port: int) -> bool:
(
sum(ord(c) ** 2 for c in session.mail)
+ sum(ord(c) ** 2 for c in session.host)
+ sum(ord(c) ** 2 for c in session.username)
)
% 2000
+ 43000
Expand Down

0 comments on commit f793ef5

Please sign in to comment.