go fmt
This commit is contained in:
parent
331192ccbe
commit
2f4cc04db2
7 changed files with 30 additions and 29 deletions
|
|
@ -41,8 +41,8 @@ func registerUser(tplPath string, filename string, username string, ip net.IP) e
|
|||
return err
|
||||
} else if err := pxeTmpl.Execute(userfd, map[string]string{
|
||||
"username": username,
|
||||
"pkey": fmt.Sprintf("%x", pkey.Sum([]byte(username))),
|
||||
"ip": fmt.Sprintf("%d.%d.%d.%d", ip.To4()[0], ip.To4()[1], ip.To4()[2], ip.To4()[3]),
|
||||
"pkey": fmt.Sprintf("%x", pkey.Sum([]byte(username))),
|
||||
"ip": fmt.Sprintf("%d.%d.%d.%d", ip.To4()[0], ip.To4()[1], ip.To4()[2], ip.To4()[3]),
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue