Skip to content

Commit 21dd115

Browse files
committed
Remove useless check for bind capabilitites on unix
1 parent 4c360e4 commit 21dd115

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

internal/home/home.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,15 +1102,6 @@ https://github.com/AdguardTeam/AdGuardHome/wiki/Getting-Started#running-without-
11021102
func checkNetworkPermissions(ctx context.Context, l *slog.Logger) {
11031103
l.InfoContext(ctx, "checking if adguard home has the necessary permissions")
11041104

1105-
if ok, err := aghnet.CanBindPrivilegedPorts(ctx, l); !ok || err != nil {
1106-
l.ErrorContext(
1107-
ctx,
1108-
"this is the first launch of adguard home; you must run it as administrator.",
1109-
)
1110-
1111-
os.Exit(osutil.ExitCodeFailure)
1112-
}
1113-
11141105
// We should check if AdGuard Home is able to bind to port 53
11151106
err := aghnet.CheckPort("tcp", netip.AddrPortFrom(netutil.IPv4Localhost(), defaultPortDNS))
11161107
if err != nil {

0 commit comments

Comments
 (0)