Port
#27
Replies: 1 comment
-
Hi @yevhenk86 I would not change the default behavior if mimicker (by making on the other hand to achieve the behaviour you suggesting simply by: from mimicker.mimicker import mimicker
server = mimicker(port=0) I will add to the documentation this offer. (README)
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe you could change the default port to 0, so the system could assign the next available port to it. Also, it would be nice then to create a function to get this port, something like:
def get_current_port(self) -> int: return self.server.server_address[1]
Beta Was this translation helpful? Give feedback.
All reactions