config: Set some more default values for the server config.

This commit is contained in:
Damir Jelić 2019-06-19 11:21:43 +02:00
parent c8d81b9cf4
commit 2c831de532

View File

@ -123,8 +123,11 @@ class ServerConfig:
name = attr.ib(type=str)
homeserver = attr.ib(type=ParseResult)
listen_address = attr.ib(type=Union[IPv4Address, IPv6Address])
listen_port = attr.ib(type=int)
listen_address = attr.ib(
type=Union[IPv4Address, IPv6Address],
default=ip_address("127.0.0.1")
)
listen_port = attr.ib(type=int, default=8009)
proxy = attr.ib(type=str, default="")
ssl = attr.ib(type=bool, default=True)
ignore_verification = attr.ib(type=bool, default=False)