Currently we issue a message when using --ifconfig but
not specifying a default gateway. This seems to be misleading,
the setup will still work fine since in P2P we now send
all traffic to the peer anyway. Or it might be irrelevant
if all route specifications include a gateway anyway.

Since it is probably better to have no message than a
misleading one, remove it.

Signed-off-by: Frank Lichtenheld <fr...@lichtenheld.com>
---
 src/openvpn/dco.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/openvpn/dco.c b/src/openvpn/dco.c
index 4f40255e..8aa7e896 100644
--- a/src/openvpn/dco.c
+++ b/src/openvpn/dco.c
@@ -438,10 +438,6 @@ dco_p2p_add_new_peer(struct context *c)
         }
         remote_addr4 = &remote_ip4;
     }
-    else if (c->options.ifconfig_local)
-    {
-        msg(M_INFO, "DCO peer init: Need a peer VPN addresss to setup IPv4 
(set --route-gateway)");
-    }
 
     struct sockaddr *remoteaddr = &ls->info.lsa->actual.dest.addr.sa;
 
-- 
2.34.1



_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to