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
6df8f14f
Commit
6df8f14f
authored
Apr 23, 2017
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refine server name resolving
parent
0b88881f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
mobile/build.sbt
mobile/build.sbt
+2
-2
mobile/src/main/res/raw/gtm_default_container
mobile/src/main/res/raw/gtm_default_container
+0
-0
mobile/src/main/scala/com/github/shadowsocks/utils/Utils.scala
...e/src/main/scala/com/github/shadowsocks/utils/Utils.scala
+3
-1
No files found.
mobile/build.sbt
View file @
6df8f14f
...
@@ -2,8 +2,8 @@ enablePlugins(AndroidApp)
...
@@ -2,8 +2,8 @@ enablePlugins(AndroidApp)
android
.
useSupportVectors
android
.
useSupportVectors
name
:=
"shadowsocks"
name
:=
"shadowsocks"
version
:=
"4.1.
4
"
version
:=
"4.1.
5
"
versionCode
:=
Some
(
18
4
)
versionCode
:=
Some
(
18
5
)
proguardOptions
++=
proguardOptions
++=
"-keep class com.github.shadowsocks.JniHelper { *; }"
::
"-keep class com.github.shadowsocks.JniHelper { *; }"
::
...
...
mobile/src/main/res/raw/gtm_default_container
View file @
6df8f14f
No preview for this file type
mobile/src/main/scala/com/github/shadowsocks/utils/Utils.scala
View file @
6df8f14f
...
@@ -80,7 +80,9 @@ object Utils {
...
@@ -80,7 +80,9 @@ object Utils {
def
resolve
(
host
:
String
,
addrType
:
Int
)
:
Option
[
String
]
=
{
def
resolve
(
host
:
String
,
addrType
:
Int
)
:
Option
[
String
]
=
{
try
{
try
{
val
lookup
=
new
Lookup
(
host
,
addrType
)
val
lookup
=
new
Lookup
(
host
,
addrType
)
val
resolver
=
new
SimpleResolver
(
"114.114.114.114"
)
val
resolver
=
new
SimpleResolver
(
"208.67.220.220"
)
resolver
.
setTCP
(
true
)
resolver
.
setPort
(
443
)
resolver
.
setTimeout
(
5
)
resolver
.
setTimeout
(
5
)
lookup
.
setResolver
(
resolver
)
lookup
.
setResolver
(
resolver
)
val
result
=
lookup
.
run
()
val
result
=
lookup
.
run
()
...
...
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