Browse Source

Fix: Allowing colons in passwords.

pull/2/head
Richard Neumann 4 years ago
parent
commit
e37ed8d56e
  1. 2
      rcon/config.py

2
rcon/config.py

@ -35,7 +35,7 @@ class Config(NamedTuple):
def from_string(cls, string: str) -> Config:
"""Reads the credentials from the given string."""
try:
host, port = string.split(':')
host, port = string.rsplit(':', maxsplit=1)
except ValueError:
raise ValueError(f'Invalid socket: {string}.') from None

Loading…
Cancel
Save