Commit e42a22d3 authored by SN150021's avatar SN150021

写3proxy优化

parent 32f28861
...@@ -81,14 +81,16 @@ public class Set3proxyTask { ...@@ -81,14 +81,16 @@ public class Set3proxyTask {
continue a; continue a;
bw.write("allow " + ipResource.getProxyUsername() + "\n"); bw.write("allow " + ipResource.getProxyUsername() + "\n");
if (ipResource.getIpType() != IpType.OWN) { bw.write("parent 1000 http " + ipResource.getAddr() + " " +
bw.write("parent 1000 http " + ipResource.getAddr() + " " + ipResource.getPort().get(0) + " " + ipResource.getUsername() + " " + ipResource.getPassword() + "\n");
ipResource.getPort().get(0) + " wujiesuperbrowser " + ipResource.getPassword() + "\n"); // if (ipResource.getIpType() != IpType.OWN) {
} else { // bw.write("parent 1000 http " + ipResource.getAddr() + " " +
bw.write("parent 1000 http " + ipResource.getAddr() + " " + // ipResource.getPort().get(0) + " wujiesuperbrowser " + ipResource.getPassword() + "\n");
ipResource.getPort().get(0) + " " + ipResource.getUsername() + " " + ipResource.getPassword() + "\n"); // } else {
// bw.write("parent 1000 http " + ipResource.getAddr() + " " +
} // ipResource.getPort().get(0) + " " + ipResource.getUsername() + " " + ipResource.getPassword() + "\n");
//
// }
} }
} }
bw.write("\nallow none\nproxy -p20004\nsocks -p20005\n"); bw.write("\nallow none\nproxy -p20004\nsocks -p20005\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment