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:
parent
190094e40d
commit
40a59b3aca
|
@ -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()
|
||||
|
|
|
@ -9,6 +9,8 @@ type Login struct {
|
|||
KeyUID string `json:"keyUid"`
|
||||
KdfIterations int `json:"kdfIterations"`
|
||||
|
||||
WakuV2Nameserver string `json:"wakuV2Nameserver"`
|
||||
|
||||
WalletSecretsConfig
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue