diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-12 23:24:29 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-12 23:24:29 +0100 |
commit | bde446bcc08483707dc20a0bbf85ad70bc9d1496 (patch) | |
tree | 5a8e946fe6c8067147828208808024209a6fdc3c /plugins | |
parent | 702d32b41c1c4f496dba046c2017cb5b907e55cd (diff) |
Test and fix IPv6 FCGI support
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/fcgi/socket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/fcgi/socket.cpp b/plugins/fcgi/socket.cpp index 82bb06b..2b34bc3 100644 --- a/plugins/fcgi/socket.cpp +++ b/plugins/fcgi/socket.cpp @@ -22,7 +22,7 @@ SocketFactory::SocketFactory() std::shared_ptr<Socket> SocketFactory::create(const std::string& app_addr) { - size_t pos { app_addr.find(':') }; + size_t pos { app_addr.find_last_of(':') }; if (pos != app_addr.npos) { // tcp socket: host:port return std::make_shared<TCPSocket>(app_addr.substr(0, pos), app_addr.substr(pos + 1), m_io_context); |