Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = cli.Command{ Name: "connect", Usage: "connect to a server", Flags: []cli.Flag{ cli.BoolFlag{ Name: "d, debug", Usage: "debug log level", }, cli.StringFlag{ Name: "P, proto", Value: "tcp", Usage: "the proto between two points", }, cli.StringFlag{ Name: "s, secret", Usage: "secret phrase", }, cli.IntFlag{ Name: "keyiter", Usage: "key iter times for pbkdf2", }, cli.IntFlag{ Name: "keylen", Usage: "key length for pbkdf2", }, cli.StringSliceFlag{ Name: "t, tunnel", Usage: "new tunnel", }, cli.IntFlag{ Name: "keepalive", Value: 30, Usage: "keepalive interval", }, }, Action: func(c *cli.Context) { if c.Bool("debug") { logrus.SetLevel(logrus.DebugLevel) } _client, err := newClient(c) if err != nil { logrus.Errorf("connect to server failed: %s", err) return } _client.Start() }, }
Command run connect command
Functions ¶
func StartAESConnect ¶
StartAESConnect start connection to a aes server
func StartDefaultConnect ¶
StartDefaultConnect start connection to a default server
Types ¶
Click to show internal directories.
Click to hide internal directories.