Use zenity password setter in static builds
This commit is contained in:
2
main.go
2
main.go
@ -97,7 +97,7 @@ var (
|
|||||||
|
|
||||||
func Password() string {
|
func Password() string {
|
||||||
require_password := os.Getenv("TOR_MANAGER_REQUIRE_PASSWORD")
|
require_password := os.Getenv("TOR_MANAGER_REQUIRE_PASSWORD")
|
||||||
if !PluginStat() {
|
if require_password == "" && !PluginStat() {
|
||||||
require_password = "true"
|
require_password = "true"
|
||||||
}
|
}
|
||||||
if require_password == "true" || require_password == "1" {
|
if require_password == "true" || require_password == "1" {
|
||||||
|
Reference in New Issue
Block a user