use Sprintf instead of concatenation for command

This commit is contained in:
eyedeekay
2024-11-22 18:48:09 -05:00
parent 88786afa0c
commit a22cde30eb
15 changed files with 94 additions and 65 deletions

View File

@ -60,7 +60,7 @@ func (sam *SAMResolver) Resolve(name string) (i2pkeys.I2PAddr, error) {
for s.Scan() {
text := s.Text()
log.WithField("text", text).Debug("Parsing SAM response token")
//log.Println("SAM3", text)
// log.Println("SAM3", text)
if text == "RESULT=OK" {
continue
} else if text == "RESULT=INVALID_KEY" {