Allow listening on multiple interfaces
This commit is contained in:
@@ -98,9 +98,11 @@ Server::~Server() {
|
||||
}
|
||||
}
|
||||
|
||||
// Clean up unix socket file if it exists
|
||||
if (!config_.server.unix_socket_path.empty()) {
|
||||
unlink(config_.server.unix_socket_path.c_str());
|
||||
// Clean up unix socket files if they exist
|
||||
for (const auto &iface : config_.server.interfaces) {
|
||||
if (iface.type == weaseldb::ListenInterface::Type::Unix) {
|
||||
unlink(iface.path.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user