mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-22 08:03:30 +01:00
7ebe58f20a
* 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. |
||
---|---|---|
.. | ||
bind | ||
mocks | ||
address.go | ||
device_wrapper_test.go | ||
device_wrapper.go | ||
iface_android.go | ||
iface_nonandroid.go | ||
iface_test.go | ||
iface_windows.go | ||
iface.go | ||
ipc_parser_android.go | ||
module_linux_test.go | ||
module_linux.go | ||
module.go | ||
name_darwin.go | ||
name.go | ||
tun_adapter.go | ||
tun_android.go | ||
tun_darwin.go | ||
tun_linux.go | ||
tun_unix.go | ||
tun_windows.go | ||
tun.go | ||
wg_configurer_android.go | ||
wg_configurer_nonandroid.go |