diff options
Diffstat (limited to 'wrappers/python/eduvpn_common/main.py')
| -rw-r--r-- | wrappers/python/eduvpn_common/main.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wrappers/python/eduvpn_common/main.py b/wrappers/python/eduvpn_common/main.py index 798c9a4..d1b3f48 100644 --- a/wrappers/python/eduvpn_common/main.py +++ b/wrappers/python/eduvpn_common/main.py @@ -38,6 +38,14 @@ class ServerType(IntEnum): SECURE_INTERNET = 2 CUSTOM = 3 + def __str__(self) -> str: + if self == ServerType.INSTITUTE_ACCESS: + return "Institute Access Server" + if self == ServerType.CUSTOM: + return "Custom Server" + if self == ServerType.SECURE_INTERNET: + return "Secure Internet Server" + return "Unknown Server" class Jar(object): """A cookie jar""" |
