opm: minor fixes
This commit is contained in:
parent
cef7dfc56c
commit
8b886283e0
1 changed files with 7 additions and 8 deletions
|
@ -455,6 +455,7 @@ establish_connection(struct auth_client *auth, struct opm_proxy *proxy)
|
||||||
case PROTO_HTTP_CONNECT:
|
case PROTO_HTTP_CONNECT:
|
||||||
case PROTO_HTTPS_CONNECT:
|
case PROTO_HTTPS_CONNECT:
|
||||||
callback = http_connect_connected;
|
callback = http_connect_connected;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -768,18 +769,16 @@ set_opm_enabled(const char *key __unused, int parc __unused, const char **parv)
|
||||||
{
|
{
|
||||||
if(listeners[LISTEN_IPV4].ip[0] != '\0' && listeners[LISTEN_IPV4].port != 0)
|
if(listeners[LISTEN_IPV4].ip[0] != '\0' && listeners[LISTEN_IPV4].port != 0)
|
||||||
{
|
{
|
||||||
lrb_assert(listeners[LISTEN_IPV4].F == NULL);
|
if(listeners[LISTEN_IPV4].F == NULL)
|
||||||
|
/* Pre-configured IP/port, just re-establish */
|
||||||
/* Pre-configured IP/port, just re-establish */
|
create_listener(listeners[LISTEN_IPV4].ip, listeners[LISTEN_IPV4].port);
|
||||||
create_listener(listeners[LISTEN_IPV4].ip, listeners[LISTEN_IPV4].port);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(listeners[LISTEN_IPV6].ip[0] != '\0' && listeners[LISTEN_IPV6].port != 0)
|
if(listeners[LISTEN_IPV6].ip[0] != '\0' && listeners[LISTEN_IPV6].port != 0)
|
||||||
{
|
{
|
||||||
lrb_assert(listeners[LISTEN_IPV6].F == NULL);
|
if(listeners[LISTEN_IPV6].F == NULL)
|
||||||
|
/* Pre-configured IP/port, just re-establish */
|
||||||
/* Pre-configured IP/port, just re-establish */
|
create_listener(listeners[LISTEN_IPV6].ip, listeners[LISTEN_IPV6].port);
|
||||||
create_listener(listeners[LISTEN_IPV6].ip, listeners[LISTEN_IPV6].port);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue