add new field to config file servers_type that determine what type of dmsg servers visor should connect. all, official and community are available values. Default value is all.
How to test this PR:
build
generate config, change servers_type value under dmsg config part to community
run visor, check connected dmsg server (available in logs)
stop visor, change servers_type to official, run again and check logs.
stop visor, change servers_type to all or empty or any other things (have same behavior), run again and check logs.
Did you run
make format && make check
? YesFixes #_
Changes:
GetIP
for check public IP of visor. (https://ip.plaintext.ir)servers_type
that determine what type of dmsg servers visor should connect.all
,official
andcommunity
are available values. Default value isall
.How to test this PR:
servers_type
value under dmsg config part tocommunity
servers_type
toofficial
, run again and check logs.servers_type
toall
or empty or any other things (have same behavior), run again and check logs.