mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
Add prometheus support
This commit is contained in:
parent
c71b361755
commit
b2fbb5ae8a
@ -163,11 +163,14 @@ RestServer::Impl::init()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_ipv6 = getProfileAgentSettingWithDefault(false, "agent.rest.enableIpv6");
|
bool is_ipv6 = false;
|
||||||
if (is_ipv6) {
|
if (accept_get_from_external_ip) {
|
||||||
|
is_ipv6 = true;
|
||||||
fd = socket(AF_INET6, SOCK_STREAM, 0);
|
fd = socket(AF_INET6, SOCK_STREAM, 0);
|
||||||
} else {
|
}
|
||||||
|
if (fd == -1) {
|
||||||
fd = socket(AF_INET, SOCK_STREAM, 0);
|
fd = socket(AF_INET, SOCK_STREAM, 0);
|
||||||
|
is_ipv6 = false;
|
||||||
}
|
}
|
||||||
dbgAssert(fd >= 0) << alert << "Failed to open a socket";
|
dbgAssert(fd >= 0) << alert << "Failed to open a socket";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user