mirror of
https://github.com/OpenVPN/openvpn.git
synced 2025-05-08 21:25:53 +08:00
Fix 'binary or' vs 'boolean or' related to server_bridge_proxy_dhcp
Both values are boolean so there is no reason to use "|" and it just confuses the reader whether there is something more going on here. Change-Id: Ie61fa6a78875ecbaa9d3d8e7a50603d77c9ce09e Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20240502095322.9433-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28601.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
02f0845be7
commit
9d92221eb4
@ -454,7 +454,7 @@ helper_client_server(struct options *o)
|
||||
* if !nogw:
|
||||
* push "route-gateway dhcp"
|
||||
*/
|
||||
else if (o->server_bridge_defined | o->server_bridge_proxy_dhcp)
|
||||
else if (o->server_bridge_defined || o->server_bridge_proxy_dhcp)
|
||||
{
|
||||
if (o->client)
|
||||
{
|
||||
|
@ -3565,7 +3565,7 @@ do_option_warnings(struct context *c)
|
||||
msg(M_WARN, "WARNING: using --pull/--client and --ifconfig together is probably not what you want");
|
||||
}
|
||||
|
||||
if (o->server_bridge_defined | o->server_bridge_proxy_dhcp)
|
||||
if (o->server_bridge_defined || o->server_bridge_proxy_dhcp)
|
||||
{
|
||||
msg(M_WARN, "NOTE: when bridging your LAN adapter with the TAP adapter, note that the new bridge adapter will often take on its own IP address that is different from what the LAN adapter was previously set to");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user