Skip to content

Commit

Permalink
Add option to hide logo
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Dec 14, 2017
1 parent a4888f4 commit a68efa4
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const BUFFERSIZE = 1024
var oneGigabytePerSecond = 1000000 // expressed as kbps

type Flags struct {
HideLogo bool
Relay bool
Debug bool
Wait bool
Expand All @@ -29,19 +30,8 @@ type Flags struct {
var version string

func main() {
// fmt.Println(`
// ,_
// >' )
// croc version ` + fmt.Sprintf("%5s", version) + ` ( ( \
// || \
// /^^^^\ ||
// /^^\________/0 \ ||
// ( ` + "`" + `~+++,,_||__,,++~^^^^^^^
// ...V^V^V^V^V^V^\...............................

// `)
fmt.Printf("croc version %s\n", version)
flags := new(Flags)
flag.BoolVar(&flags.HideLogo, "hidelogo", false, "run as relay")
flag.BoolVar(&flags.Relay, "relay", false, "run as relay")
flag.BoolVar(&flags.Debug, "debug", false, "debug mode")
flag.BoolVar(&flags.Wait, "wait", false, "wait for code to be sent")
Expand All @@ -54,6 +44,20 @@ func main() {
flag.BoolVar(&flags.DontEncrypt, "no-encrypt", false, "turn off encryption")
flag.IntVar(&flags.NumberOfConnections, "threads", 4, "number of threads to use")
flag.Parse()
if !flags.HideLogo {
fmt.Println(`
,_
>' )
croc version ` + fmt.Sprintf("%5s", version) + ` ( ( \
|| \
/^^^^\ ||
/^^\________/0 \ ||
( ` + "`" + `~+++,,_||__,,++~^^^^^^^
...V^V^V^V^V^V^\...............................
`)
}
fmt.Printf("croc version %s\n", version)

if flags.Relay {
r := NewRelay(flags)
Expand Down

0 comments on commit a68efa4

Please sign in to comment.