diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-02-09 22:03:15 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-02-09 22:03:15 +0100 |
commit | 7672e8d60586129e8f4f9c718d1d62f3c9c0b729 (patch) | |
tree | 1245e9010d245d83cbb27eb2e63fe88b62d544e6 /cmd/dolmetschctld/dolmetschctld.go | |
parent | added telnet control interface (diff) |
language selection now returns result
Diffstat (limited to 'cmd/dolmetschctld/dolmetschctld.go')
-rw-r--r-- | cmd/dolmetschctld/dolmetschctld.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/dolmetschctld/dolmetschctld.go b/cmd/dolmetschctld/dolmetschctld.go index 0f6793b..45536e8 100644 --- a/cmd/dolmetschctld/dolmetschctld.go +++ b/cmd/dolmetschctld/dolmetschctld.go @@ -60,11 +60,15 @@ func main() { defer sm.Shutdown() var telnet *TelnetInterface - if telnet, err = NewTelnetInterface(sm); err != nil { + if telnet, err = NewTelnetInterface("127.0.0.1:1234", sm); err != nil { log.Printf("creating telnet control interface failed: %v", err) os.Exit(1) } - telnet.Run() + log.Printf("telnet interface successfully initialized!") + + if err = telnet.Run(); err != nil { + log.Printf("running telnet interface failed: %v", err) + } log.Printf("exiting.") } |