-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[no sq] Changes #70
[no sq] Changes #70
Conversation
sfan5
commented
Feb 13, 2025
As discussed internally there are some edge cases where this would require unreasonable changes on the server owner's part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. Didn't test.
I would like to have this PR not squashed upon merge. The commits are separated very nicely. It would be a shame to lose that.
@@ -567,6 +588,13 @@ def get(self, ip, port): | |||
i, server = self.getWithIndex(ip, port) | |||
return server | |||
|
|||
def checkDuplicate(self, other_server): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isDuplicate
would be a more accurate name, which is unfortunately lexically similar to is_duplicate
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer check
here for reasons I can't really explain.
server.verifyLevel = 1 | ||
|
||
# do this here since verifyLevel is now set | ||
if serverList.checkDuplicate(server): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only returns true if it's a duplicate of a different server and that server is more trusted, so maybe this should be named something like isImpersonation
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
calling this "impersonation" feels heavy-handed when there are innocent reasons for this to happen, dunno
fb3fb15
to
777ad8d
Compare
Now running in production. |