summaryrefslogtreecommitdiff
path: root/src/se/leap/openvpn/OpenVpnService.java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-11-21 21:41:58 +0100
committerParménides GV <parmegv@sdf.org>2013-11-21 21:50:32 +0100
commitf9f69298e7d0b5e4258ea27095f50f9da7c6ff9b (patch)
tree66db318de3735da8b65ed4799b104b682c74990c /src/se/leap/openvpn/OpenVpnService.java
parent18f7612ee584e6f3023d230698ab0bf8866cd2ec (diff)
OpenVPN notification contains location.
Instead of plain domain, we're printing a new variable stored in vpnprofile (parsed in ConfigParser): location. I'm substituing "__" by ", ", but I'm not uppercasing anything. We rely on the raw data from eip-service.json.
Diffstat (limited to 'src/se/leap/openvpn/OpenVpnService.java')
-rw-r--r--src/se/leap/openvpn/OpenVpnService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/se/leap/openvpn/OpenVpnService.java b/src/se/leap/openvpn/OpenVpnService.java
index 5e5bf3d7..1ef291df 100644
--- a/src/se/leap/openvpn/OpenVpnService.java
+++ b/src/se/leap/openvpn/OpenVpnService.java
@@ -350,7 +350,7 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac
bconfig[4] = getString(R.string.routes_info, joinString(mRoutes));
bconfig[5] = getString(R.string.routes_info6, joinString(mRoutesv6));
- String session = mProfile.mName.substring(mProfile.mName.indexOf(".")+1);
+ String session = mProfile.mLocation;
/* we don't want the IP address in the notification bar
if(mLocalIP!=null && mLocalIPv6!=null)
session = getString(R.string.session_ipv6string,session, mLocalIP, mLocalIPv6);