26 Commits

Author SHA1 Message Date
Chen Yufei
5c2035f60d Show host name in error page. 2013-10-31 13:42:35 +08:00
Chen Yufei
0414e20aca Include version in error page. 2013-08-06 13:56:24 +08:00
Chen Yufei
407787d106 Remove unused code in error.go 2013-06-13 15:25:52 +08:00
Chen Yufei
1bf0affd81 Extract Fatal(f), reorder options in config.go 2013-04-13 09:47:43 +08:00
Chen Yufei
556e977dff Remove blocked error page and related code in error.go 2013-02-06 18:26:23 +08:00
Chen Yufei
5756a24942 Remove autoRetry option. 2013-02-05 21:40:42 +08:00
Chen Yufei
3bfb90848e Remove domainset.go 2013-02-04 20:29:04 +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
dc4d68398d Rename URL.Host to URL.HostPort 2013-01-31 10:54:19 +08:00
Chen Yufei
fe86197942 Support multiple listen address. 2012-12-31 23:39:54 +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
f6238168d9 Better error handling. 2012-12-09 20:32:05 +08:00
Chen Yufei
a033f2d3fa Remove write buffer to server connection. 2012-12-09 01:53:19 +08:00
Chen Yufei
3cb01682af Fix a few typos. 2012-11-27 15:07:46 +08:00
Chen Yufei
c8fead8ee0 Only provide add direct option if domain not in direct DS. 2012-11-25 22:57:58 +08:00
Chen Yufei
7800e76a58 Option to add domain to direct list in error page. 2012-11-24 01:10:24 +08:00
Chen Yufei
114775db91 Refactor domain set. 2012-11-23 18:56:29 +08:00
Chen Yufei
41a53d2025 Blocked error page generation. 2012-11-23 13:14:00 +08:00
Chen Yufei
a37e3d583a Variable renaming in error.go 2012-11-23 01:31:08 +08:00
Chen Yufei
105540676c Blocked error page form generation. 2012-11-23 01:26:34 +08:00
Chen Yufei
8a742ee807 Return blocked error page with selection form. 2012-11-22 22:40:49 +08:00
Chen Yufei
8d316265c0 Rename for error page related variable. 2012-11-22 20:07:53 +08:00
Chen Yufei
a91e42d8a4 Refactor error handling. 2012-11-16 00:33:49 +08:00
Chen Yufei
fb37e9b0d3 Better error page message. 2012-11-09 01:38:14 +08:00
Chen Yufei
87209a6721 Send error page back to client. 2012-11-06 13:34:38 +08:00