Skip to content
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

Unknown on Last Ping Field. #32

Open
Cioko opened this issue Dec 1, 2022 · 0 comments
Open

Unknown on Last Ping Field. #32

Cioko opened this issue Dec 1, 2022 · 0 comments

Comments

@Cioko
Copy link

Cioko commented Dec 1, 2022

Hi,
with OpenVpn 2.5.8 the field "Last Ping" show Unknown. Seems that the new version put an "@0" at the end of the mac_address... I resolve it by modify the is_mac_address(s) function in the openvpn-monitor.py file as show below:

ORIGINAL:

    @staticmethod
    def is_mac_address(s):
        return len(s) == 17 and \
            len(s.split(':')) == 6 and \
            all(c in string.hexdigits for c in s.replace(':', ''))

MODIFIED:

    @staticmethod
    def is_mac_address(stringa):
        s=stringa.split("@")[0]
        return len(s) == 17 and \
            len(s.split(':')) == 6 and \
            all(c in string.hexdigits for c in s.replace(':', ''))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant