GNOME Bugzilla – Bug 784461
Allow "udp6" & "tcp6" protocols to pass through
Last modified: 2017-09-26 08:58:27 UTC
Ubuntu has been carrying this patch for a while. https://launchpad.net/bugs/777161
Created attachment 354812 [details] [review] Allow "udp6" & "tcp6" protocols to pass through
(In reply to Jeremy Bicha from comment #1) > Created attachment 354812 [details] [review] [review] > Allow "udp6" & "tcp6" protocols to pass through How about accepting also udp4 and tcp4? i.e.: - if (proto && strcmp (proto, "udp") && strcmp (proto, "tcp") && strcmp (proto, "udp6") && strcmp (proto, "tcp6")) + if (!NM_IN_STRSET (proto, NULL, "udp", "udp4", "udp6", "tcp", "tcp4", "tcp6")) Also, I think we should always add the '-client' suffix to tcp proto. Probably we should do something like: if (NM_IN_STRSET (proto, "udp", "udp4", "udp6")) add_openvpn_arg (args, proto); else if (nm_streq (proto, "tcp")) add_openvpn_arg (args, "tcp-client"); else if (nm_streq (proto, "tcp4")) add_openvpn_arg (args, "tcp4-client"); else if (nm_streq (proto, "tcp6")) add_openvpn_arg (args, "tcp6-client"); What do you think?
Fixed by https://git.gnome.org/browse/network-manager-openvpn/commit/?id=3c5c7efba75ffd121be3b0ac179c36ca9aa772b0 and bug 731620. *** This bug has been marked as a duplicate of bug 731620 ***