netbird/client/cmd
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
..
down.go Revert "setting cli flags to proper commands (#860)" (#916) 2023-05-31 16:06:42 +02:00
login_test.go Rename module to netbirdio/netbird (#288) 2022-03-26 12:08:54 +01:00
login.go Revert "setting cli flags to proper commands (#860)" (#916) 2023-05-31 16:06:42 +02:00
root_test.go Revert preshared-key shorthand flag (#671) 2023-02-06 10:35:37 +01:00
root.go Revert "setting cli flags to proper commands (#860)" (#916) 2023-05-31 16:06:42 +02:00
service_controller.go Revert "setting cli flags to proper commands (#860)" (#916) 2023-05-31 16:06:42 +02:00
service_installer.go Revert "setting cli flags to proper commands (#860)" (#916) 2023-05-31 16:06:42 +02:00
service.go Revert "setting cli flags to proper commands (#860)" (#916) 2023-05-31 16:06:42 +02:00
ssh.go fix error codes on cli 2023-06-23 16:27:10 +02:00
status_test.go Use local time zone for display last update changes (#825) 2023-04-27 16:02:00 +02:00
status.go Revert "setting cli flags to proper commands (#860)" (#916) 2023-05-31 16:06:42 +02:00
testutil.go Add telemetry to measure app durations (#878) 2023-05-19 11:42:25 +02:00
up_daemon_test.go Rename module to netbirdio/netbird (#288) 2022-03-26 12:08:54 +01:00
up.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
version.go Add version info command to signal server (#739) 2023-03-15 07:54:51 +01:00