mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-18 21:11:50 +03:00
Pull request 2311: 7465 Fix nil dereference
Squashed commit of the following: commit e4943c2b064ff0647d0e3bd2e6431bb94f151ba5 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Nov 27 17:05:32 2024 +0300 home: fix nil dereference
This commit is contained in:
parent
4a49c4db96
commit
9789e5b0fe
1 changed files with 1 additions and 1 deletions
|
@ -726,7 +726,7 @@ func newUpdater(
|
||||||
}
|
}
|
||||||
|
|
||||||
err := urlutil.ValidateHTTPURL(versionURL)
|
err := urlutil.ValidateHTTPURL(versionURL)
|
||||||
if customURL = err == nil; customURL {
|
if customURL = err == nil; !customURL {
|
||||||
l.DebugContext(ctx, "parsing custom version url", slogutil.KeyError, err)
|
l.DebugContext(ctx, "parsing custom version url", slogutil.KeyError, err)
|
||||||
|
|
||||||
versionURL = updater.DefaultVersionURL()
|
versionURL = updater.DefaultVersionURL()
|
||||||
|
|
Loading…
Reference in a new issue