Attention is currently required from: Name of user not set #1000061. Arne Schwabe has posted comments on this change by Arne Schwabe. ( https://gerrit.openvpn.net/c/openvpn/+/1859?usp=email )
Change subject: Add python scripts that demonstrate using the mangement interface ...................................................................... Patch Set 9: (12 comments) File sample/management/omi.py: https://gerrit.openvpn.net/c/openvpn/+/1859/comment/7db6ffdd_e00436fd?usp=email : PS8, Line 105: logger.warn(f'Connection lost ({exc}). Shutting down.') > warn is deprecated, use warning Done https://gerrit.openvpn.net/c/openvpn/+/1859/comment/e48d8d77_3212fe8d?usp=email : PS8, Line 211: self.recvBuffer = self.recvBuffer[len(OMI_PASSWORD_PROMPT) + 1:] > snake_case instead of camelCase Done https://gerrit.openvpn.net/c/openvpn/+/1859/comment/64acbcd9_4d454eb8?usp=email : PS8, Line 308: def log_message(self, time, level, message): > misssing typing Done File sample/management/omi_client_protocol.py: https://gerrit.openvpn.net/c/openvpn/+/1859/comment/f8f17d62_40684961?usp=email : PS5, Line 66: flags = "6" > We should move it to well names constant I feel that is a bit overdoing it. With the same argument I should also move all the other fixed part of the protocol like acc-msg, client-auth-nt and so on to constants and that would make the code harder to read. https://gerrit.openvpn.net/c/openvpn/+/1859/comment/e3e8fa09_fa03c57c?usp=email : PS5, Line 116: handler(self._partial_acc_msg) > Hmm, right now we're not allowing async handlers. […] I implemented support for async def function using inspect.iscoroutinefunction in dispatch_to_handler. I am not sure if there is a canonical way to do this instead. File sample/management/omi_client_protocol.py: https://gerrit.openvpn.net/c/openvpn/+/1859/comment/2908d622_516ab121?usp=email : PS8, Line 38: def __init__(self, finish_future, connect_data): > Missing typing Acknowledged File sample/management/omi_server_demo.py: https://gerrit.openvpn.net/c/openvpn/+/1859/comment/9a0ae035_1d50f73d?usp=email : PS5, Line 118: username = client.env.get("username") > get can return None, so it will fail with startswith later Done File sample/management/omi_server_demo.py: https://gerrit.openvpn.net/c/openvpn/+/1859/comment/b34259ca_767ddede?usp=email : PS8, Line 88: class ServerDemoConnectedClient(ConnectedClient): > @dataclass is missing here. […] I want to repeat that I find Python dataclasses are weird. Fixed. https://gerrit.openvpn.net/c/openvpn/+/1859/comment/c7251e61_379934aa?usp=email : PS8, Line 189: "NOTIFY:Please wait for 23s to let the server think if it want to admit you") > NOTIFY:: ? Currently the text is in the flags placeholder.. […] Done File sample/management/omi_server_protocol.py: https://gerrit.openvpn.net/c/openvpn/+/1859/comment/af33a899_967363b3?usp=email : PS5, Line 186: handler(client, kid, env, extra) > Exception in the handler will kill connection.. […] the dispatch_to_handler now has an exception handler for this. File sample/management/omi_server_protocol.py: https://gerrit.openvpn.net/c/openvpn/+/1859/comment/170fed7e_c9ff3379?usp=email : PS8, Line 143: client._partial_acc_msg += msg.decode() > Each fragment is decoded as UTF-8 separately, but messages are split at byte > boundaries, so a multi- […] Should be fixed now. Now every line is decoded as a whole . File sample/management/omi_tools.py: https://gerrit.openvpn.net/c/openvpn/+/1859/comment/d2dd06b0_157fe3c7?usp=email : PS8, Line 39: def openvpn_escape(text): > missing typing Done -- To view, visit https://gerrit.openvpn.net/c/openvpn/+/1859?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ib09bafabf612e9501ea757647c86a450c73228a5 Gerrit-Change-Number: 1859 Gerrit-PatchSet: 9 Gerrit-Owner: Arne Schwabe <[email protected]> Gerrit-CC: Name of user not set #1000061 Gerrit-CC: openvpn-devel <[email protected]> Gerrit-Attention: Name of user not set #1000061 Gerrit-Comment-Date: Thu, 05 Nov 2026 13:30:07 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: Name of user not set #1000061
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
