Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions internal/home/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -1102,15 +1102,6 @@ https://github.com/AdguardTeam/AdGuardHome/wiki/Getting-Started#running-without-
func checkNetworkPermissions(ctx context.Context, l *slog.Logger) {
l.InfoContext(ctx, "checking if adguard home has the necessary permissions")

if ok, err := aghnet.CanBindPrivilegedPorts(ctx, l); !ok || err != nil {
l.ErrorContext(
ctx,
"this is the first launch of adguard home; you must run it as administrator.",
)

os.Exit(osutil.ExitCodeFailure)
}

// We should check if AdGuard Home is able to bind to port 53
err := aghnet.CheckPort("tcp", netip.AddrPortFrom(netutil.IPv4Localhost(), defaultPortDNS))
if err != nil {
Expand Down