mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-10-26 11:27:18 +00: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
@ -726,7 +726,7 @@ func newUpdater(
|
||||
}
|
||||
|
||||
err := urlutil.ValidateHTTPURL(versionURL)
|
||||
if customURL = err == nil; customURL {
|
||||
if customURL = err == nil; !customURL {
|
||||
l.DebugContext(ctx, "parsing custom version url", slogutil.KeyError, err)
|
||||
|
||||
versionURL = updater.DefaultVersionURL()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user