netbird/iface
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
..
bind Clarify XORMapped panic case (#877) 2023-05-18 19:47:36 +02:00
mocks Feat fake dns address (#902) 2023-06-08 13:46:57 +04:00
address.go Mobile prerefactor (#680) 2023-02-13 18:34:56 +01:00
device_wrapper_test.go Feat fake dns address (#902) 2023-06-08 13:46:57 +04:00
device_wrapper.go Feat fake dns address (#902) 2023-06-08 13:46:57 +04:00
iface_android.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
iface_nonandroid.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
iface_test.go Feature/android route notification (#868) 2023-05-31 18:25:24 +02:00
iface_windows.go Mobile (#735) 2023-03-17 10:37:27 +01:00
iface.go Feature/android dns (#943) 2023-06-12 14:43:55 +02:00
ipc_parser_android.go Fix pre-shared key query name for android configuration (#773) 2023-03-29 10:41:14 +02:00
module_linux_test.go Bind implementation (#779) 2023-04-13 17:00:01 +02:00
module_linux.go Bind implementation (#779) 2023-04-13 17:00:01 +02:00
module.go Bind implementation (#779) 2023-04-13 17:00:01 +02:00
name_darwin.go Mobile (#735) 2023-03-17 10:37:27 +01:00
name.go Mobile (#735) 2023-03-17 10:37:27 +01:00
tun_adapter.go Feature/android dns (#943) 2023-06-12 14:43:55 +02:00
tun_android.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
tun_darwin.go Mobile (#735) 2023-03-17 10:37:27 +01:00
tun_linux.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
tun_unix.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
tun_windows.go Fix use wrpped device in windows (#981) 2023-06-23 10:01:22 +02:00
tun.go Feature/android dns (#943) 2023-06-12 14:43:55 +02:00
wg_configurer_android.go Mobile (#735) 2023-03-17 10:37:27 +01:00
wg_configurer_nonandroid.go Share kernel Wireguard port with raw socket (#826) 2023-05-03 14:47:44 +02:00