Skip to content

Commit

Permalink
bandwidth limits for TCP
Browse files Browse the repository at this point in the history
  • Loading branch information
idk committed Sep 5, 2019
1 parent bcd32aa commit 0293172
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions manager/noui.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// +build !static,!nostatic

package sammanager

import (
"log"
"os"
"os/signal"
"time"
)

func RunUI() {
}

func (s *app) Serve() bool {
log.Println("Starting Tunnels()")
for _, element := range s.clientMux.Tunnels() {
log.Println("Starting service tunnel", element.ID())
go element.Serve()
}

return Exit()
}

func Exit() bool {
Close := false
for !Close {
time.Sleep(1 * time.Second)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
go func() {
for sig := range c {
log.Println(sig)

Close = true
}
}()
}
return false
}

0 comments on commit 0293172

Please sign in to comment.