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
1f6d6bbd
Commit
1f6d6bbd
authored
Jan 09, 2017
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Acl.scala to be compliant with acl.c
parent
c25433e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main/scala/com/github/shadowsocks/acl/Acl.scala
src/main/scala/com/github/shadowsocks/acl/Acl.scala
+2
-2
No files found.
src/main/scala/com/github/shadowsocks/acl/Acl.scala
View file @
1f6d6bbd
...
...
@@ -58,8 +58,8 @@ class Acl {
bypass
=
false
lazy
val
bypassSubnets
=
new
mutable
.
SortedList
[
Subnet
]()
lazy
val
proxySubnets
=
new
mutable
.
SortedList
[
Subnet
]()
var
hostnames
:
mutable.SortedList
[
String
]
=
proxy
Hostnames
var
subnets
:
mutable.SortedList
[
Subnet
]
=
proxy
Subnets
var
hostnames
:
mutable.SortedList
[
String
]
=
bypass
Hostnames
var
subnets
:
mutable.SortedList
[
Subnet
]
=
bypass
Subnets
for
(
line
<-
value
.
getLines
())
(
line
.
indexOf
(
'#'
)
match
{
case
-
1
=>
line
case
index
=>
line
.
substring
(
0
,
index
)
// trim comments
...
...
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