Pull request: - isdelve: remove unused package
Merge in DNS/adguard-home from remove-isdelve to master Squashed commit of the following: commit aa305fa46713b39a8299754e8fd557cbadcb7cc3 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Nov 6 18:06:07 2020 +0300 - isdelve: remove unused package
This commit is contained in:
parent
298f74ba81
commit
eefa553100
|
@ -26,8 +26,6 @@ import (
|
||||||
"github.com/AdguardTeam/AdGuardHome/internal/update"
|
"github.com/AdguardTeam/AdGuardHome/internal/update"
|
||||||
"github.com/AdguardTeam/AdGuardHome/internal/util"
|
"github.com/AdguardTeam/AdGuardHome/internal/util"
|
||||||
|
|
||||||
"github.com/AdguardTeam/AdGuardHome/internal/isdelve"
|
|
||||||
|
|
||||||
"github.com/AdguardTeam/AdGuardHome/internal/dhcpd"
|
"github.com/AdguardTeam/AdGuardHome/internal/dhcpd"
|
||||||
"github.com/AdguardTeam/AdGuardHome/internal/dnsfilter"
|
"github.com/AdguardTeam/AdGuardHome/internal/dnsfilter"
|
||||||
"github.com/AdguardTeam/AdGuardHome/internal/dnsforward"
|
"github.com/AdguardTeam/AdGuardHome/internal/dnsforward"
|
||||||
|
@ -357,10 +355,7 @@ func checkPermissions() {
|
||||||
// On Windows we need to have admin rights to run properly
|
// On Windows we need to have admin rights to run properly
|
||||||
|
|
||||||
admin, _ := util.HaveAdminRights()
|
admin, _ := util.HaveAdminRights()
|
||||||
if // noinspection ALL
|
if admin {
|
||||||
admin || isdelve.Enabled {
|
|
||||||
// Don't forget that for this to work you need to add "delve" tag explicitly
|
|
||||||
// https://stackoverflow.com/questions/47879070/how-can-i-see-if-the-goland-debugger-is-running-in-the-program
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
// +build delve
|
|
||||||
|
|
||||||
package isdelve
|
|
||||||
|
|
||||||
const Enabled = true
|
|
|
@ -1,3 +0,0 @@
|
||||||
// Package isdelve is for checking if we're debugging:
|
|
||||||
// https://stackoverflow.com/questions/47879070/how-can-i-see-if-the-goland-debugger-is-running-in-the-program
|
|
||||||
package isdelve
|
|
|
@ -1,5 +0,0 @@
|
||||||
// +build !delve
|
|
||||||
|
|
||||||
package isdelve
|
|
||||||
|
|
||||||
const Enabled = false
|
|
Loading…
Reference in New Issue