Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fda21b3b authored by Jack Yu's avatar Jack Yu Committed by Automerger Merge Worker
Browse files

Merge "Check InetAddress Type When Adding Route MTU" am: 518755b5 am:...

Merge "Check InetAddress Type When Adding Route MTU" am: 518755b5 am: 4c958680 am: ce4ed844 am: ace8b999

Change-Id: I4d68ccb3d1b49336ce273ad973a5ac9b17017caf
parents b38d6d69 ace8b999
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1476,7 +1476,7 @@ public class DataConnection extends StateMachine {
                }

                for (InetAddress gateway : response.getGatewayAddresses()) {
                    int mtu = linkProperties.hasGlobalIpv6Address() ? response.getMtuV6()
                    int mtu = gateway instanceof java.net.Inet6Address ? response.getMtuV6() 
                            : response.getMtuV4();
                    // Allow 0.0.0.0 or :: as a gateway;
                    // this indicates a point-to-point interface.