Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-sevostianov-sc committed Sep 5, 2017
1 parent 1958b35 commit 1c2f97e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ public int onStartCommand(final Intent intent, int flags, final int startId) {
Toast.makeText(this, "SimpleRT Connected!", Toast.LENGTH_SHORT).show();
Native.start(tunFd.detachFd(), accessoryFd.detachFd());

setAsUndernlyingNetwork(ipAddr);
setAsUnderlyingNetwork(ipAddr);
return START_NOT_STICKY;
}

private void setAsUndernlyingNetwork(String ipAddress) {
private void setAsUnderlyingNetwork(String ipAddress) {
if (Build.VERSION.SDK_INT >= 22) {
Network vpnNetwork = findVpnNetwork(ipAddress);
if (vpnNetwork != null) {
Expand Down

0 comments on commit 1c2f97e

Please sign in to comment.