mirror of
https://github.com/gl-inet/glkvm-cloud.git
synced 2026-09-23 19:16:18 +00:00
@@ -35,9 +35,13 @@ The server side of [rtty](https://github.com/zhaojh329/rtty)
|
||||
-ssl-key string
|
||||
keyFile Path
|
||||
|
||||
## run
|
||||
## run as root (use system credentials)
|
||||
|
||||
sudo ./rttys
|
||||
|
||||
## run as normal user (define username and password in config file)
|
||||
|
||||
./rttys
|
||||
|
||||
# Contributing
|
||||
If you would like to help making [rttys](https://github.com/zhaojh329/rttys) better,
|
||||
|
||||
@@ -60,8 +60,8 @@ var httpSessions = make(map[string]*HttpSession)
|
||||
func main() {
|
||||
cfg := parseConfig()
|
||||
|
||||
if !checkUser() {
|
||||
log.Println("Operation not permitted")
|
||||
if (!checkUser() && cfg.username == "" && cfg.password =="") {
|
||||
log.Println("Operation not permitted. Please start as root or define Username and Password in configuration file")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user