diff options
| author | 2022-12-18 17:51:35 +0000 | |
|---|---|---|
| committer | 2022-12-18 18:47:28 +0000 | |
| commit | 2ddb62319803f6a3f3246a52b4e009d9ae1daaed (patch) | |
| tree | 96a5d23c8a38f3282f3e52346cb706d55e58658f /src/modules/m_gateway.cpp | |
| parent | We actually want ADDRESS_FAMILY not SOCKET_ADDRESS for sa_family_t. (diff) | |
Use in_port_t instead of int/unsigned int/long.
Diffstat (limited to 'src/modules/m_gateway.cpp')
| -rw-r--r-- | src/modules/m_gateway.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_gateway.cpp b/src/modules/m_gateway.cpp index a43e3ee9b..4e3bdc843 100644 --- a/src/modules/m_gateway.cpp +++ b/src/modules/m_gateway.cpp @@ -480,7 +480,7 @@ public: if (cport != flags->end()) { // If we can't parse the port then just give up. - uint16_t port = ConvToNum<uint16_t>(cport->second); + in_port_t port = ConvToNum<in_port_t>(cport->second); if (port) { switch (user->client_sa.family()) @@ -506,7 +506,7 @@ public: if (sport != flags->end()) { // If we can't parse the port then just give up. - uint16_t port = ConvToNum<uint16_t>(sport->second); + in_port_t port = ConvToNum<in_port_t>(sport->second); if (port) { switch (user->server_sa.family()) |
