1
0
mirror of https://github.com/bettercap/bettercap.git synced 2025-03-12 04:36:03 -07:00
This commit is contained in:
evilsocket 2018-02-07 20:33:03 +01:00
parent 3ab433bbdb
commit 7a62807e9d

@ -2,6 +2,7 @@ package main
import (
"fmt"
"io"
"os"
"github.com/evilsocket/bettercap-ng/core"
@ -63,7 +64,10 @@ func main() {
for sess.Active {
line, err := sess.ReadLine()
if err != nil {
log.Fatal("WOOT %s", err)
if err == io.EOF {
continue
}
log.Fatal("%s", err)
}
for _, cmd := range session.ParseCommands(line) {