summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7e931fb)
Adjust the fallback behavior for otherwise unconfigured address
binding to match the safe posture adopted in the sample
configuration.
"""Miscellaneous functions for the mudpy engine."""
"""Miscellaneous functions for the mudpy engine."""
-# Copyright (c) 2004-2020 mudpy authors. Permission to use, copy,
+# Copyright (c) 2004-2021 mudpy authors. Permission to use, copy,
# modify, and distribute this software is granted under terms
# provided in the LICENSE file distributed with this software.
# modify, and distribute this software is granted under terms
# provided in the LICENSE file distributed with this software.
host = self.contents["mudpy.network"].get("host")
port = self.contents["mudpy.network"].get("port")
host = self.contents["mudpy.network"].get("host")
port = self.contents["mudpy.network"].get("port")
- # if no host was specified, bind to all local addresses (preferring
+ # if no host was specified, bind to the loopback address (preferring
# ipv6)
if not host:
if socket.has_ipv6:
# ipv6)
if not host:
if socket.has_ipv6:
# figure out if this is ipv4 or v6
family = socket.getaddrinfo(host, port)[0][0]
# figure out if this is ipv4 or v6
family = socket.getaddrinfo(host, port)[0][0]