netbird/client
Zoltan Papp 7ebe58f20a
Feature/permanent dns (#967)
* Add DNS list argument for mobile client

* Write testable code

Many places are checked the wgInterface != nil condition.
It is doing it just because to avoid the real wgInterface creation for tests.
Instead of this involve a wgInterface interface what is moc-able.

* Refactor the DNS server internal code structure

With the fake resolver has been involved several
if-else statement and generated some unused
variables to distinguish the listener and fake
resolver solutions at running time. With this
commit the fake resolver and listener based
solution has been moved into two separated
structure. Name of this layer is the 'service'.
With this modification the unit test looks
simpler and open the option to add new logic for
the permanent DNS service usage for mobile
systems.



* Remove is running check in test

We can not ensure the state well so remove this
check. The test will fail if the server is not
running well.
2023-07-14 21:56:22 +02:00
..
android Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
cmd Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
firewall FIx error on ip6tables not available (#999) 2023-07-14 20:44:35 +02:00
internal Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
proto Adding --external-ip-map and --dns-resolver-address and shorthand flags (#652) 2023-01-17 19:16:50 +01:00
server Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
ssh add sleep and comment 2023-06-23 17:02:34 +02:00
system feat: add support for custom device hostname (#789) 2023-04-20 16:00:22 +02:00
testdata Replace IP allocation logic (#342) 2022-05-29 22:43:39 +02:00
ui Add version info command to signal server (#739) 2023-03-15 07:54:51 +01:00
Dockerfile Adding --external-ip-map and --dns-resolver-address and shorthand flags (#652) 2023-01-17 19:16:50 +01:00
installer.nsis Bind implementation (#779) 2023-04-13 17:00:01 +02:00
main.go Clarify XORMapped panic case (#877) 2023-05-18 19:47:36 +02:00
manifest.xml Renaming project builds and including new Icons (#318) 2022-05-21 18:42:56 +02:00
resources.rc Bind implementation (#779) 2023-04-13 17:00:01 +02:00