update JetBrains License Server
This commit is contained in:
parent
379c8cdb7b
commit
416fa4f88d
@ -1,4 +1,4 @@
|
|||||||
package common
|
package ip
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -1,4 +1,4 @@
|
|||||||
package common
|
package ip
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
@ -1,4 +1,4 @@
|
|||||||
package common
|
package logger
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
@ -1,4 +1,4 @@
|
|||||||
package common
|
package pool
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
@ -1,4 +1,4 @@
|
|||||||
package common
|
package pool
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
@ -1,4 +1,4 @@
|
|||||||
package common
|
package runner
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
@ -1,4 +1,4 @@
|
|||||||
package common
|
package runner
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
@ -1,4 +1,4 @@
|
|||||||
package common
|
package sync
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
@ -20,20 +20,23 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
log.SetOutput(os.Stdout)
|
log.SetOutput(os.Stdout)
|
||||||
|
|
||||||
|
log.Println("************************************************************")
|
||||||
|
log.Printf("** %-55s**", "JetBrains License Server")
|
||||||
|
log.Printf("** %-55s**", "Please support genuine!!!")
|
||||||
|
|
||||||
port := flag.Int("p", 21017, "port")
|
port := flag.Int("p", 21017, "port")
|
||||||
host := flag.String("h", "0.0.0.0", "Bind TCP Address")
|
host := flag.String("h", "0.0.0.0", "Bind TCP Address")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
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") {
|
||||||
addr = strings.Replace(addr, "0.0.0.0", "127.0.0.1", 1)
|
addr = strings.Replace(addr, "0.0.0.0", "", 1)
|
||||||
|
*host = strings.Replace(*host, "0.0.0.0", "127.0.0.1", 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println("************************************************************")
|
log.Printf("** You can use %-43s**", fmt.Sprintf("http://%s:%d as license server", *host, *port))
|
||||||
log.Printf("** %-55s**", "JetBrains License Server")
|
|
||||||
log.Printf("** %-55s**", "Please support genuine!!!")
|
|
||||||
log.Printf("** listen on %-45s**", fmt.Sprintf("%s:%d...", *host, *port))
|
|
||||||
log.Printf("** You can use %-43s**", fmt.Sprintf("http://%s as license server", addr))
|
|
||||||
log.Println("************************************************************")
|
log.Println("************************************************************")
|
||||||
|
|
||||||
routerBinding()
|
routerBinding()
|
||||||
@ -75,7 +78,7 @@ func ping(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func obtainTicket(w http.ResponseWriter, r *http.Request) {
|
func obtainTicket(w http.ResponseWriter, r *http.Request) {
|
||||||
log.Println(r.URL)
|
// log.Println(r.URL)
|
||||||
//buildDate := r.URL.Query().Get("buildDate")
|
//buildDate := r.URL.Query().Get("buildDate")
|
||||||
//clientVersion := r.URL.Query().Get("clientVersion")
|
//clientVersion := r.URL.Query().Get("clientVersion")
|
||||||
//hostName := r.URL.Query().Get("hostName")
|
//hostName := r.URL.Query().Get("hostName")
|
||||||
|
Loading…
Reference in New Issue
Block a user