use commons-net instead
This commit is contained in:
@@ -303,6 +303,8 @@ class ShadowsocksService extends Service {
|
||||
startDnsDaemon()
|
||||
startRedsocksDaemon()
|
||||
setupIptables
|
||||
flushDNS()
|
||||
|
||||
true
|
||||
}
|
||||
|
||||
@@ -496,6 +498,11 @@ class ShadowsocksService extends Service {
|
||||
Service.START_STICKY
|
||||
}
|
||||
|
||||
def flushDNS() {
|
||||
Utils.runRootCommand("ndc resolver flushdefaultif\n"
|
||||
+ "ndc resolver flushif wlan0\n")
|
||||
}
|
||||
|
||||
def setupIptables: Boolean = {
|
||||
val init_sb = new StringBuilder
|
||||
val http_sb = new StringBuilder
|
||||
|
||||
Reference in New Issue
Block a user