Merge pull request #36 from SShah7433/feature/remove-password-print

Skip print statement if PIHolePassword
This commit is contained in:
Vincent Composieux 2020-04-05 16:27:15 +02:00 committed by GitHub
commit 67cafccd8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,10 @@ func (c Config) show() {
valueField := val.Field(i)
typeField := val.Type().Field(i)
log.Println(fmt.Sprintf("%s : %v", typeField.Name, valueField.Interface()))
// Do not print password
if typeField.Name != "PIHolePassword" {
log.Println(fmt.Sprintf("%s : %v", typeField.Name, valueField.Interface()))
}
}
log.Println("------------------------------------")
}