Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
1268376b
Commit
1268376b
authored
Apr 07, 2017
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix hostname not displayed correctly in notification
parent
b7101914
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
mobile/src/main/scala/com/github/shadowsocks/BaseService.scala
...e/src/main/scala/com/github/shadowsocks/BaseService.scala
+1
-0
mobile/src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala
.../scala/com/github/shadowsocks/ShadowsocksNatService.scala
+1
-1
mobile/src/main/scala/com/github/shadowsocks/ShadowsocksVpnService.scala
.../scala/com/github/shadowsocks/ShadowsocksVpnService.scala
+1
-1
No files found.
mobile/src/main/scala/com/github/shadowsocks/BaseService.scala
View file @
1268376b
...
@@ -124,6 +124,7 @@ trait BaseService extends Service {
...
@@ -124,6 +124,7 @@ trait BaseService extends Service {
}
else
true
}
else
true
def
connect
()
{
def
connect
()
{
profile
.
name
=
profile
.
getName
// save original name before it's (possibly) overwritten by IP addresses
if
(
profile
.
host
==
"198.199.101.152"
)
{
if
(
profile
.
host
==
"198.199.101.152"
)
{
val
holder
=
app
.
containerHolder
val
holder
=
app
.
containerHolder
val
container
=
holder
.
getContainer
val
container
=
holder
.
getContainer
...
...
mobile/src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala
View file @
1268376b
...
@@ -204,7 +204,7 @@ class ShadowsocksNatService extends BaseService {
...
@@ -204,7 +204,7 @@ class ShadowsocksNatService extends BaseService {
AclSyncJob
.
schedule
(
profile
.
route
)
AclSyncJob
.
schedule
(
profile
.
route
)
changeState
(
State
.
CONNECTED
)
changeState
(
State
.
CONNECTED
)
notification
=
new
ShadowsocksNotification
(
this
,
profile
.
getN
ame
,
true
)
notification
=
new
ShadowsocksNotification
(
this
,
profile
.
n
ame
,
true
)
}
}
override
def
stopRunner
(
stopService
:
Boolean
,
msg
:
String
=
null
)
{
override
def
stopRunner
(
stopService
:
Boolean
,
msg
:
String
=
null
)
{
...
...
mobile/src/main/scala/com/github/shadowsocks/ShadowsocksVpnService.scala
View file @
1268376b
...
@@ -138,7 +138,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
...
@@ -138,7 +138,7 @@ class ShadowsocksVpnService extends VpnService with BaseService {
if
(
profile
.
route
!=
Acl
.
ALL
&&
profile
.
route
!=
Acl
.
CUSTOM_RULES
)
if
(
profile
.
route
!=
Acl
.
ALL
&&
profile
.
route
!=
Acl
.
CUSTOM_RULES
)
AclSyncJob
.
schedule
(
profile
.
route
)
AclSyncJob
.
schedule
(
profile
.
route
)
notification
=
new
ShadowsocksNotification
(
this
,
profile
.
getN
ame
)
notification
=
new
ShadowsocksNotification
(
this
,
profile
.
n
ame
)
}
}
/** Called when the activity is first created. */
/** Called when the activity is first created. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment