Allow passing nameserver on login

Nameserver is passed by the OS on creation/restore, this commit adds the
ability to pass it at login time.
We don't want to store it on disk since that's bound to change, and
currently there's a bug on golang that prevents getting the DNS from the
system on android.
This commit is contained in:
Andrea Maria Piana 2023-06-28 13:07:33 +01:00
parent 190094e40d
commit 40a59b3aca
2 changed files with 6 additions and 0 deletions

View File

@ -534,6 +534,10 @@ func (b *GethStatusBackend) loginAccount(request *requests.Login) error {
return err
}
if b.config.WakuV2Config.Enabled && request.WakuV2Nameserver != "" {
b.config.WakuV2Config.Nameserver = request.WakuV2Nameserver
}
b.overrideNetworks(b.config, request)
err = b.setupLogSettings()

View File

@ -9,6 +9,8 @@ type Login struct {
KeyUID string `json:"keyUid"`
KdfIterations int `json:"kdfIterations"`
WakuV2Nameserver string `json:"wakuV2Nameserver"`
WalletSecretsConfig
}