diff options
author | Sadie Powell <sadie@witchery.services> | 2022-12-27 10:21:40 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2022-12-27 10:21:40 +0000 |
commit | 6395107be630b0a4181d68eb5b55b69493af5bb7 (patch) | |
tree | e00c048dd88a034076e9f9b099a52a4ebd8b73ad /src | |
parent | 24b881c427a0f3b07709bb2b81c8d2a574142d81 (diff) |
Fix getting the port on non-UNIX socket listeners.
Diffstat (limited to 'src')
-rw-r--r-- | src/config.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.cpp b/src/config.cpp index 0503340b0..37ebe08ca 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -210,8 +210,8 @@ Conf::Conf() : Block(""), EmptyBlock("") int port = 0; if (protocol != AF_UNIX) { - ValidateNotZero("uplink", "port", port); port = uplink->Get<int>("port"); + ValidateNotZero("uplink", "port", port); } const Anope::string &password = uplink->Get<const Anope::string>("password"); |