refactored totally, but now exits and doesn't serve for some reason

This commit is contained in:
2019-11-08 21:30:54 -08:00
parent 6c9b82a10c
commit 297b8f4e1a
5 changed files with 115 additions and 140 deletions

View File

@@ -1,13 +1,13 @@
//3456789112345676892123456789312345678941234567895123456789612345678971234567898
package main
import "time"
import "os"
import "sync"
import "time"
import "github.com/rs/zerolog"
import "github.com/rs/zerolog/log"
import "golang.org/x/crypto/ssh/terminal"
import "github.com/sneak/merp"
import "golang.org/x/crypto/ssh/terminal"
//revive:disable
var Version string
@@ -21,7 +21,16 @@ var Appname string
func main() {
initLogging()
identify()
merp.ServeForever()
var wg sync.WaitGroup
wg.Add(1)
go func() {
ms := merp.NewMerpServer()
ms.ServeForever()
wg.Done()
}()
wg.Wait()
}
func identify() {