mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-05 15:32:54 +03:00
Pull request: 5035-more-clients-netip-addr
Updates #5035. Squashed commit of the following: commit 1934ea14299921760e9fcf6dd9053bd3155cb40e Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed Nov 9 14:19:54 2022 +0300 all: move more client code to netip.Addr
This commit is contained in:
parent
98af0e000e
commit
167b112511
17 changed files with 164 additions and 210 deletions
internal/home
|
@ -576,7 +576,7 @@ func checkPermissions() {
|
|||
}
|
||||
|
||||
// We should check if AdGuard Home is able to bind to port 53
|
||||
err := aghnet.CheckPort("tcp", netip.AddrPortFrom(aghnet.IPv4Localhost(), defaultPortDNS))
|
||||
err := aghnet.CheckPort("tcp", netip.AddrPortFrom(netutil.IPv4Localhost(), defaultPortDNS))
|
||||
if err != nil {
|
||||
if errors.Is(err, os.ErrPermission) {
|
||||
log.Fatal(`Permission check failed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue