add https support
This commit is contained in:
3
main.go
3
main.go
@@ -19,7 +19,8 @@ import (
|
||||
var core embed.FS
|
||||
|
||||
func init() {
|
||||
config.Port = flag.Int("p", 3000, "Set the server port")
|
||||
config.Port = flag.Int("p", 3000, "Set the server port for http")
|
||||
config.HTTPSPort = flag.Int("ps", 3000, "Set the server port for https")
|
||||
config.Color = flag.Bool("no-color", false, "Disable color output")
|
||||
config.Core = core
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user