Commits

Taru Karttunen committed 5d3617a

Fixes

  • Participants
  • Parent commits 75b74d1

Comments (0)

Files changed (3)

 )
 
 func EnsureCert(DNS string, ConfigDir string) {
-	cf := ConfigDir + "/novnc." + DNS + ".cert"
-	kf := ConfigDir + "/novnc." + DNS + ".secret"
+	cf := ConfigDir + "/novncgo." + DNS + ".cert"
+	kf := ConfigDir + "/novncgo." + DNS + ".secret"
 	_, err := tls.LoadX509KeyPair(cf, kf)
 	if err != nil {
 		log.Println("Generating certificate ",cf)
 }
 
 func AuthUser(username, pass string) bool {
-	r,e := os.Open("novnc.go.passwd")
+	r,e := os.Open("novncgo.passwd")
 	if e!=nil {
 		log.Print(e)
 		return false
 }
 
 func Servers() []Server {
-	r,e := os.Open("novnc.go.servers")
+	r,e := os.Open("novncgo.servers")
 	if e!=nil {
 		log.Print(e)
 		return nil

File novncgo-passwd/passwd.go

 		lines = append(lines, bytes.Join(line, []byte(":")))
 	}
 	raw := bytes.Join(lines, []byte("\n"))
-	raw = append(raw, '\n')
 	ioutil.WriteFile(os.Args[1], raw, 0600)
 }