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) valueField := val.Field(i)
typeField := val.Type().Field(i) typeField := val.Type().Field(i)
// Do not print password
if typeField.Name != "PIHolePassword" {
log.Println(fmt.Sprintf("%s : %v", typeField.Name, valueField.Interface())) log.Println(fmt.Sprintf("%s : %v", typeField.Name, valueField.Interface()))
} }
}
log.Println("------------------------------------") log.Println("------------------------------------")
} }