update JetBrains License Server

This commit is contained in:
ehlxr 2018-01-23 14:26:22 +08:00
parent 00ed960c51
commit b4e63f8353
2 changed files with 6 additions and 6 deletions

BIN
utils/idea/idea Executable file

Binary file not shown.

View File

@ -24,10 +24,10 @@ func main() {
host := flag.String("host", "0.0.0.0", "Bind TCP Address") host := flag.String("host", "0.0.0.0", "Bind TCP Address")
flag.Parse() flag.Parse()
log.Println("************************************************************") log.Println("*************************************************************")
log.Printf("** %-55s**", "JetBrains License Server") log.Printf("** %-55s**", "JetBrains License Server")
log.Printf("** %-55s**", "Please support genuine!!!") log.Printf("** %-55s**", "Please support genuine!!!")
log.Printf("** listen on %-45s**", fmt.Sprintf("%s:%d...", *host, *port)) log.Printf("** Listen on %-45s**", fmt.Sprintf("%s:%d...", *host, *port))
addr := fmt.Sprintf("%s:%d", *host, *port) addr := fmt.Sprintf("%s:%d", *host, *port)
if strings.Contains(addr, "0.0.0.0") { if strings.Contains(addr, "0.0.0.0") {
@ -36,7 +36,7 @@ func main() {
} }
log.Printf("** You can use %-43s**", fmt.Sprintf("http://%s:%d as license server", *host, *port)) log.Printf("** You can use %-43s**", fmt.Sprintf("http://%s:%d as license server", *host, *port))
log.Println("************************************************************") log.Println("*************************************************************")
routerBinding() routerBinding()
err := http.ListenAndServe(addr, http.DefaultServeMux) err := http.ListenAndServe(addr, http.DefaultServeMux)