Eugene Bujak
|
052f975762
|
dnsforward -- Move querylog from coredns plugin, a more complex migration with proper API took too long so a simple move was used instead to save time.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
e5d2f883ac
|
dnsforward -- Make Upstream interface give access to Address field.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
8396dc2fdb
|
Update docs for formatting in godoc.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
09fb539875
|
Simplify two lines into one line.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
be4b65fdca
|
dnsforward -- use dnsfilter before cache -- changed settings or filters would require cache invalidation otherwise
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
0a4627f4f0
|
Fix engrish
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
0502ef6cc7
|
dnsforward -- initialize all dnsfilter settings at start and reconfigure
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
2281b60ebb
|
dnsfilter -- add trace()
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
7d2e39ed52
|
dnsfilter -- Add a convinience function to add all rules from all filters.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
e26837d9e8
|
dnsfilter -- Add parameter to New() to supply optional initial config.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
3ecc0ee24b
|
Makefile -- don't dictate to go what binary to build, so it can append .exe if building for windows.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
057db71f3b
|
Get rid of duplicate variable definitions
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
ce615e1855
|
dnsfilter -- Get rid of accessors.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
87c54ebd4c
|
Move Filter definition from dnsforward to dnsfilter, it belongs there.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
a6e0a17454
|
dnsforward -- trim dot in the end of hostname, dnsfilter does not expect it there
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
9089122b56
|
Compress the packed static js and css to save some space.
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
e0286ee85d
|
Don't forget to give user filter to dns forwarding server
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
31f77af534
|
Move user filter saving into writeAllConfigs()
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
0d1478b635
|
Remove unused struct field
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
d27fd0488d
|
Move filter-related variables, types and methods to filter.go
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
9c4b791621
|
coredns reload -> dnsServer.Reconfigure()
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
9d87ae95e6
|
dnsforward -- if given addresses without ports, assign default ports
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
8316d39b42
|
Move filtering setting fields from main app to dnsforward.
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
7120f551c8
|
dnsforward -- rename BlockedTTL to BlockedResponseTTL to be in line with app's config variable.
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
e4a3564706
|
Fix a logical race that wasn't detectable by -race -- we were closing a connection that was already reestablished.
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
4eb122e973
|
Avoid duplication of fields in filter struct.
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
feabc21864
|
Unplug coreDNS and plug dnsforward library.
|
2018-12-05 16:54:56 +03:00 |
Eugene Bujak
|
a904f85e61
|
dnsforward library -- default to plain DNS for high-performance testing.
|
2018-12-05 16:54:56 +03:00 |
Eugene Bujak
|
584f441141
|
dnsforward library -- introduce IsRunning()
|
2018-12-05 16:54:56 +03:00 |
Eugene Bujak
|
7944f23d95
|
dnsforward library -- consistently nullify and close listening socket when we're done with it.
|
2018-12-05 16:54:56 +03:00 |
Eugene Bujak
|
639b34c7d1
|
dnsforward library -- Fix race conditions found by -race
|
2018-12-05 16:54:56 +03:00 |
Eugene Bujak
|
ea1353422f
|
User rules -- hold them as a slice of strings, which is how dns forwarding server will expect them.
|
2018-12-05 16:54:56 +03:00 |
Eugene Bujak
|
5a548be16c
|
Add dns forwarding server library
|
2018-12-05 16:54:56 +03:00 |
Eugene Bujak
|
39eccc62b1
|
Fix that filter ID is uppercase while js expects it to be lowercase.
|
2018-12-05 16:50:06 +03:00 |
Eugene Bujak
|
ea25510a08
|
Travis -- separate js build time from go build time.
|
2018-11-29 15:05:29 +03:00 |
Eugene Bujak
|
45ae984f3b
|
Fix incorrect cherry-pick in previous commit.
|
2018-11-29 14:58:25 +03:00 |
Eugene Bujak
|
2012e707d0
|
Fix race condition of trying to write YAML config simultaneously and failing.
|
2018-11-29 13:31:50 +03:00 |
Eugene Bujak
|
942cde79bd
|
Merge pull request #116 in DNS/adguard-dns from fix/466 to master
* commit 'c37c3e0459eb71ffed40e2ff3a4239a1c258e02b':
Fix #466
|
2018-11-29 13:19:21 +03:00 |
Andrey Meshkov
|
c37c3e0459
|
Fix #466
|
2018-11-29 11:24:27 +03:00 |
Eugene Bujak
|
cab73c0d68
|
Fix travis tests -- since we don't use modules there's no need to do git checkout
|
2018-11-28 14:34:28 +03:00 |
Eugene Bujak
|
58129543de
|
Fix panic in upstream test if upstream returns with i/o timeout
|
2018-11-28 14:34:04 +03:00 |
Eugene Bujak
|
504aaddc32
|
Update README -- translations section had wrong level of heading
|
2018-11-28 13:39:48 +03:00 |
Eugene Bujak
|
6257ff123f
|
Fix gometalinter warnings
|
2018-11-28 13:38:19 +03:00 |
Eugene Bujak
|
aa3f3e2c43
|
Make some traces into a log, remove others
|
2018-11-28 13:38:19 +03:00 |
Eugene Bujak
|
70c5afd6a5
|
Restore Engrish function names to normal English.
|
2018-11-28 13:38:19 +03:00 |
Eugene Bujak
|
701fd10c1c
|
Protect against users deleting the filter ID's in the config file.
Incidentally, it also simplifies upgrade schema from 0 to 1.
|
2018-11-28 13:38:19 +03:00 |
Eugene Bujak
|
6cb991fe7f
|
Clean up some code -- reorganize some structs and unexport some consts.
|
2018-11-28 13:38:19 +03:00 |
Eugene Bujak
|
ec7efcc9d6
|
Move config upgrade to separate upgrade.go
|
2018-11-28 13:38:19 +03:00 |
Ildar Kamalov
|
489c29b472
|
Merge pull request #114 in DNS/adguard-dns from fix/463 to master
* commit '5609e47c28d9481d75bf73d153bf369bca987137':
Fixed filters table update on language change
Add client translations
|
2018-11-28 11:51:03 +03:00 |
Ildar Kamalov
|
5609e47c28
|
Fixed filters table update on language change
|
2018-11-28 10:25:06 +03:00 |