projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use consistent spacing in tox variables and lists
[mudpy.git]
/
mudpy
/
misc.py
diff --git
a/mudpy/misc.py
b/mudpy/misc.py
index
df17211
..
6d61085
100644
(file)
--- a/
mudpy/misc.py
+++ b/
mudpy/misc.py
@@
-1,6
+1,6
@@
"""Miscellaneous functions for the mudpy engine."""
"""Miscellaneous functions for the mudpy engine."""
-# Copyright (c) 2004-202
0
mudpy authors. Permission to use, copy,
+# Copyright (c) 2004-202
1
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.
@@
-436,13
+436,13
@@
class Universe:
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 addresse
s (preferring
+ # if no host was specified, bind to
the loopback addres
s (preferring
# ipv6)
if not host:
if socket.has_ipv6:
# ipv6)
if not host:
if socket.has_ipv6:
- host = "::"
+ host = "::
1
"
else:
else:
- host = "
0.0.0.0
"
+ host = "
127.0.0.1
"
# 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]