Chen Yufei
|
d898284383
|
Fix #292: return direct for *.local host in PAC.
|
2015-04-12 23:17:40 +08:00 |
|
Chen Yufei
|
a4fa2816b6
|
Refactor proxy selection.
|
2014-07-09 10:54:16 +08:00 |
|
Chen Yufei
|
ab468039ac
|
Update PAC every minute.
|
2013-12-02 20:36:44 +08:00 |
|
Chen Yufei
|
cfc756f3cb
|
Refactor proxy server representation.
|
2013-10-26 00:57:59 +08:00 |
|
Chen Yufei
|
377fd4e392
|
Take as self request if URL path seem like getting PAC.
|
2013-08-22 21:00:42 +08:00 |
|
Chen Yufei
|
b987437488
|
Return 'DIRECT' for ftp request in PAC.
|
2013-08-19 23:48:09 +08:00 |
|
Chen Yufei
|
a2f0814386
|
Remove splitHostPort, use net.SplitHostPort exclusively.
|
2013-07-19 12:37:50 +08:00 |
|
Chen Yufei
|
d3762b56ac
|
Fix potential direct list assignment race in pac.
|
2013-06-14 14:14:01 +08:00 |
|
Chen Yufei
|
adf9541ad4
|
Always direct for loop back IP.
|
2013-06-07 15:12:43 +08:00 |
|
Chen Yufei
|
b28afee08e
|
PAC return direct for private IP, proxy for other IP.
|
2013-06-06 23:57:25 +08:00 |
|
Chen Yufei
|
200a9947b7
|
Return empty domain in host2Domain for IP address in PAC.
|
2013-05-06 19:36:05 +08:00 |
|
Chen Yufei
|
1bf0affd81
|
Extract Fatal(f), reorder options in config.go
|
2013-04-13 09:47:43 +08:00 |
|
Chen Yufei
|
bf641c8fb4
|
A little clean up for PAC.
|
2013-04-11 16:03:27 +08:00 |
|
Chen Yufei
|
e6358656f4
|
Fix jslint warning for PAC.
|
2013-03-18 22:19:22 +08:00 |
|
Chen Yufei
|
cfec2662f1
|
Fix jslint warning for PAC.
|
2013-03-05 13:11:20 +08:00 |
|
Chen Yufei
|
0b0b0f8abd
|
Fix PAC: return direct for simple host name.
|
2013-02-12 16:27:28 +08:00 |
|
Chen Yufei
|
d471b772cb
|
Allow user to specify proxy server address in PAC.
|
2013-02-11 20:38:56 +08:00 |
|
Chen Yufei
|
2659105aa5
|
Add port in Proxy to avoid re-calc in PAC.
|
2013-02-11 19:28:24 +08:00 |
|
Chen Yufei
|
1838c3688f
|
Small fixes for PAC javascript.
|
2013-02-05 01:28:56 +08:00 |
|
Chen Yufei
|
ebd82eb3ac
|
PAC has to be generated to server different listen addresses.
Cache only direct list, while generate PAC on the fly.
|
2013-02-05 00:53:54 +08:00 |
|
Chen Yufei
|
fd9713dbe5
|
Customized impl of hostIsIP, also add in PAC.
|
2013-02-04 23:58:35 +08:00 |
|
Chen Yufei
|
69c8d61983
|
Fix nil pointer reference in pac.go with empty direct list.
|
2013-02-04 20:52:46 +08:00 |
|
Chen Yufei
|
ba07dc134c
|
Cache generate PAC content for 10 minutes.
|
2013-02-04 20:34:26 +08:00 |
|
Chen Yufei
|
5a2cdd909e
|
Use site stat to generate pac file.
|
2013-02-04 14:12:11 +08:00 |
|
Chen Yufei
|
cf3962964d
|
Check host name first in PAC.
|
2013-02-01 17:39:16 +08:00 |
|
Chen Yufei
|
bb3174f1f2
|
Test host name first in domainset test function. Use URL as argument.
So we can use host name in blocked/direct file.
|
2013-01-31 15:12:04 +08:00 |
|
Chen Yufei
|
17c67ded82
|
Correctly set proxy address in PAC with empty direct domain list.
|
2013-01-29 23:26:27 +08:00 |
|
Chen Yufei
|
0cc80aacf7
|
Sending back authenticate response to client.
|
2013-01-02 00:11:23 +08:00 |
|
Chen Yufei
|
c70b6d27d4
|
Better handling of 0.0.0.0 in listen address.
|
2013-01-01 11:15:42 +08:00 |
|
Chen Yufei
|
fe86197942
|
Support multiple listen address.
|
2012-12-31 23:39:54 +08:00 |
|
Chen Yufei
|
152ca7d43e
|
Tell browser to use proxy if direct list is empty.
|
2012-12-30 21:46:15 +08:00 |
|
Chen Yufei
|
2539c3e512
|
Refactor domain set: new type DomainSet to hold all domain set.
|
2012-12-30 19:54:38 +08:00 |
|
Chen Yufei
|
815ac9b613
|
Allow specify configuration file on command line.
Config now becomes a type, to make reflection possible, all fields are
exported now. So this commit touches almost all source files.
|
2012-12-17 16:55:52 +08:00 |
|
Chen Yufei
|
2d6e60ce50
|
Group some pac related global variables.
|
2012-12-14 21:46:50 +08:00 |
|
Chen Yufei
|
d17121236b
|
Unify top level domain in pac generation and domain set.
|
2012-12-12 11:00:01 +08:00 |
|
Chen Yufei
|
a0fb61ac41
|
Generate PAC file into buffer.
|
2012-12-10 11:12:26 +08:00 |
|
Chen Yufei
|
2908c9d02b
|
Optimize PAC generation.
|
2012-12-09 01:53:24 +08:00 |
|
Chen Yufei
|
93edb2fc18
|
Remove write buffer for client connection.
|
2012-12-09 01:53:24 +08:00 |
|
Chen Yufei
|
19fa194508
|
Fix PAC error.
|
2012-12-06 13:50:31 +08:00 |
|
Chen Yufei
|
5e793c1443
|
Correctly handle listen address with 0.0.0.0 as host.
Will try to get host IP address and serve it in PAC file.
|
2012-12-05 21:44:12 +08:00 |
|
Chen Yufei
|
3d58307774
|
Put localhost in PAC template.
So it will not be written into auto-direct.
|
2012-11-23 16:36:51 +08:00 |
|
Chen Yufei
|
d6e35bee6e
|
Add localhost in pac by adding them to directDs.
|
2012-11-23 14:22:18 +08:00 |
|
Chen Yufei
|
48048c7f28
|
Return simple direct if no direct domain present.
|
2012-11-23 13:56:20 +08:00 |
|
Chen Yufei
|
38e18acce9
|
Add double quote to localhost in pac template.
|
2012-11-23 13:12:49 +08:00 |
|
Chen Yufei
|
16b54c76a5
|
Add localhost in generated PAC file.
|
2012-11-22 22:22:42 +08:00 |
|
Chen Yufei
|
a8837edef4
|
Fix bug in generating PAC file.
|
2012-11-22 00:24:52 +08:00 |
|
Chen Yufei
|
af69405ce5
|
Specify always direct/blocked sites.
|
2012-11-15 00:03:00 +08:00 |
|
Chen Yufei
|
ac2ec7fc4b
|
Update PAC template to reflect change in host2Domain.
|
2012-11-10 20:53:14 +08:00 |
|
Chen Yufei
|
601342ed29
|
Always send the latest PAC file.
|
2012-11-10 00:45:35 +08:00 |
|
Chen Yufei
|
c8e54feba0
|
Refactor and create direct domain set.
|
2012-11-07 19:17:50 +08:00 |
|