feature/id-for-hmtl-headers #3

Open
jonathan wants to merge 61 commits from jonathan/cpolis:feature/id-for-hmtl-headers into devel
Showing only changes of commit 46532e4c85 - Show all commits

View File

@ -113,7 +113,10 @@ func (c *Config) handleCliArgs() error {
flag.IntVar(&port, "port", port, "port") flag.IntVar(&port, "port", port, "port")
flag.Parse() flag.Parse()
if port != 0 {
c.Port = fmt.Sprint(":", port) c.Port = fmt.Sprint(":", port)
}
c.ConfigFile, err = mkFile(c.ConfigFile, 0600, 0700) c.ConfigFile, err = mkFile(c.ConfigFile, 0600, 0700)
if err != nil { if err != nil {
return fmt.Errorf("error setting up file: %v", err) return fmt.Errorf("error setting up file: %v", err)