mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 05:53:00 +00:00
Wrap ipv6 in []
when displaying/logging messages
This commit is contained in:
@@ -157,7 +157,8 @@ class Server(Base):
|
||||
spawner = relationship("Spawner", back_populates="server", uselist=False)
|
||||
|
||||
def __repr__(self):
|
||||
return f"<Server({self.ip}:{self.port})>"
|
||||
ip = f"[{self.ip}]" if ":" in self.ip else self.ip
|
||||
return f"<Server({ip}:{self.port})>"
|
||||
|
||||
|
||||
# lots of things have roles
|
||||
|
Reference in New Issue
Block a user