Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
browser-backend
Commits
713f2adb
Commit
713f2adb
authored
May 09, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自有专线bug
parent
403f0f42
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Set3proxyTask.java
.../com/edgec/browserbackend/browser/task/Set3proxyTask.java
+6
-2
No files found.
src/main/java/com/edgec/browserbackend/browser/task/Set3proxyTask.java
View file @
713f2adb
...
...
@@ -74,10 +74,14 @@ public class Set3proxyTask {
}
bw
.
write
(
"\nauth strong\n"
);
for
(
IpResource
ipResource
:
ipResources
)
{
a:
for
(
IpResource
ipResource
:
ipResources
)
{
if
(
StringUtils
.
isNotBlank
(
ipResource
.
getAddr
()))
{
if
(
ipResource
.
getPort
()
==
null
||
ipResource
.
getPort
().
size
()
==
0
)
continue
a
;
bw
.
write
(
"allow "
+
ipResource
.
getProxyUsername
()
+
"\n"
);
bw
.
write
(
"parent 1000 http "
+
ipResource
.
getAddr
()
+
" "
+
ipResource
.
getPort
().
get
(
1
)
+
" fangguanlianbrowser "
+
ipResource
.
getPassword
()
+
"\n"
);
bw
.
write
(
"parent 1000 http "
+
ipResource
.
getAddr
()
+
" "
+
(
ipResource
.
getPort
().
size
()
>
1
?
ipResource
.
getPort
().
get
(
1
):
ipResource
.
getPort
().
get
(
0
))
+
" fangguanlianbrowser "
+
ipResource
.
getPassword
()
+
"\n"
);
}
}
bw
.
write
(
"\nallow none\nproxy -p20004\nsocks -p20005\n"
);
...
...
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