Kirill Motkov
0401a91ef4
Some code improvements
...
* Rewrite empty string checks more idiomatically.
* Change strings.ToLower comparisons to strings.EqualFold.
* Rewrite switch statement with only one case as if.
2019-06-28 17:53:44 +03:00
Darien Raymond
f41b07395a
fix error propagation for nxdomain
2019-02-21 15:17:04 +01:00
Darien Raymond
9957c64b4a
correctly propagate dns errors all the way through.
...
the internal dns system can correctly handle the cases where:
1) domain has no A or AAAA records
2) domain doesn't exist
fixes #1565
2019-02-21 13:43:48 +01:00
Darien Raymond
6c31049295
add some log to dns lookup
2019-02-12 21:04:28 +01:00
Darien Raymond
2aa0c08709
check domain name
2019-02-06 21:02:03 +01:00
Darien Raymond
836440c61a
dns outbound proxy
2019-02-06 10:21:04 +01:00
Darien Raymond
1ab94fed79
optimize v2ctl size
2019-02-01 20:08:21 +01:00
Darien Raymond
3b02c02ab4
Revert "move init func to separate files"
...
This reverts commit 3de50a6412
.
2019-02-01 16:56:43 +01:00
Darien Raymond
3de50a6412
move init func to separate files
2019-02-01 16:21:42 +01:00
Darien Raymond
ffb3793b26
support domain to domain mapping in static host
2019-01-30 21:04:29 +01:00
Darien Raymond
44d87ed642
inbound tag for dns requests
2019-01-16 20:32:41 +01:00
Darien Raymond
daa8c9c5da
rename NameServerInterface to Client
2018-12-28 20:28:31 +01:00
Darien Raymond
1cc3a4832d
fix logic for adding localhost dns
2018-11-22 16:29:09 +01:00
Darien Raymond
bb1efdebd1
support querying either IPv4 or IPv6 dns
2018-11-19 20:42:02 +01:00
Darien Raymond
a14fae4b35
fix lint warnings
2018-11-13 23:19:58 +01:00
Wuxiang
3a4371ad21
fix a typo
2018-10-29 19:24:17 +08:00
Darien Raymond
307aac26b3
simplify dependency resolution
2018-10-22 11:26:22 +02:00
Darien Raymond
a5dcb0f13e
refactor dependency resolution
2018-10-21 10:27:13 +02:00
Darien Raymond
fb7dd1a577
fix #1322
2018-10-19 06:45:10 +02:00
Darien Raymond
abf0cb1ec4
move function to features
2018-10-13 15:15:49 +02:00
Darien Raymond
d730637239
Require Type() for Feature
2018-10-12 23:57:56 +02:00
Darien Raymond
c3170dfc8e
fix dns client
2018-10-11 23:09:15 +02:00
Darien Raymond
b4821c5ed5
move policy and dnsClient
2018-10-11 22:34:31 +02:00
Darien Raymond
091fa6ad23
use new errorgen
2018-09-30 23:08:41 +02:00
Darien Raymond
909cb9b27a
announce deprecated proto settings
2018-09-21 16:54:06 +02:00
Darien Raymond
eb05a92592
dont start periodic task until necessary
2018-08-29 23:00:01 +02:00
Darien Raymond
f227e85b54
support per-domain prioritized name server
2018-08-24 21:51:03 +02:00
Darien Raymond
c9e35bb1ba
fix localnameserver creation
2018-06-27 11:23:39 +02:00
Darien Raymond
4477e7436b
simplify client ip design
2018-06-26 23:23:59 +02:00
Darien Raymond
d5f7728acd
support subdomain matching in dns hosts
2018-06-26 22:34:05 +02:00
Darien Raymond
e9e9de55ac
support client subnet
2018-06-26 17:14:51 +02:00
Darien Raymond
f743b1e591
remove task member in dns.Server.
2018-06-26 15:35:22 +02:00
Darien Raymond
9cfb2bfd51
simplify classic dns server
2018-06-26 15:04:47 +02:00
Darien Raymond
13f3c356ca
unified task package
2018-05-27 13:02:29 +02:00
Darien Raymond
83625618ee
re-init maps when they are empty
2018-04-07 23:07:30 +02:00
wuxiang
3f19d09878
update some comments
2018-04-03 17:11:54 +08:00
Jinqiu Yu
33e090befe
Clean useless code
2018-03-23 14:20:14 +08:00
Darien Raymond
88b25d38cb
simplify context retrieval
2018-02-21 17:05:29 +01:00
Darien Raymond
dffaef60b4
use periodic task in dns.Server
2018-02-08 17:00:22 +01:00
Darien Raymond
efcb567273
remove context in struct
2018-02-08 15:39:46 +01:00
Darien Raymond
292d7cc353
massive refactoring for interoperability
2018-01-10 12:22:37 +01:00
Darien Raymond
bc52a105ff
rename dns.Server
2017-12-28 23:19:41 +01:00
Darien Raymond
ab4f245313
overrideable dns
2017-12-19 23:55:09 +01:00
Darien Raymond
c4144af223
decouple dns server
2016-12-16 16:20:12 +01:00
Darien Raymond
50bc195f7f
rename TypedSettings to TypedMessage
2016-12-15 11:51:09 +01:00
Darien Raymond
efb24a4d21
rewrite error lib
2016-12-04 09:10:47 +01:00
Darien Raymond
f95c322677
rename 'this'
2016-11-27 21:39:09 +01:00
Darien Raymond
c041740940
remove ErrMissingApplication
2016-11-21 21:13:01 +01:00
Darien Raymond
e866ff24a4
refine app settings in v2ray config
2016-10-16 16:04:30 +02:00
Darien Raymond
d38e62932d
proto for dns config
2016-09-20 16:05:35 +02:00