0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 21:30:16 +02:00

print other

This commit is contained in:
Zack Scholl 2018-07-01 14:27:12 -07:00
parent 2e545e6594
commit 5ca6a6455e

View file

@ -352,12 +352,12 @@ func (c *Croc) dialUp() (err error) {
if i == 0 { if i == 0 {
c.cs.Lock() c.cs.Lock()
c.bar = progressbar.NewOptions(c.cs.channel.fileMetaData.Size, progressbar.OptionSetWriter(os.Stderr)) c.bar = progressbar.NewOptions(c.cs.channel.fileMetaData.Size, progressbar.OptionSetWriter(os.Stderr))
c.cs.Unlock()
if role == 0 { if role == 0 {
fmt.Fprintf(os.Stderr, "\nSending...\n") fmt.Fprintf(os.Stderr, "\nSending (->%s)...\n", c.cs.channel.Addresses[1])
} else { } else {
fmt.Fprintf(os.Stderr, "\nReceiving...\n") fmt.Fprintf(os.Stderr, "\nReceiving (<-%s)...\n", c.cs.channel.Addresses[0])
} }
c.cs.Unlock()
} }
if role == 0 { if role == 0 {