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

Commit af8dc57d authored by Hung-ying Tyan's avatar Hung-ying Tyan
Browse files

Make VPN connect even when DNS is not present and other fixes.

* Changes:
  + As title.
  + Add two new states to VpnState: UNKNOWN and UNUSABLE.
  + Add more debug messages when stopping a service and when DNS being
    overridden.
parent 10e85097
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -26,8 +26,13 @@ package android.net.vpn;
 * {@link DISCONNECTING} and then {@link IDLE}.
 * {@link CANCELLED} is a state when a VPN connection attempt is aborted, and
 * is in transition to {@link IDLE}.
 * The {@link UNUSABLE} state indicates that the profile is not in a state for
 * connecting due to possibly the integrity of the fields or another profile is
 * connecting etc.
 * The {@link UNKNOWN} state indicates that the profile state is to be
 * determined.
 * {@hide}
 */
public enum VpnState {
    CONNECTING, DISCONNECTING, CANCELLED, CONNECTED, IDLE
    CONNECTING, DISCONNECTING, CANCELLED, CONNECTED, IDLE, UNUSABLE, UNKNOWN
}