Commit Graph

246 Commits

Author SHA1 Message Date
mathew 1b646d5528 Improve error reporting 2020-08-22 18:05:00 -05:00
mathew 827b5d3a86 Initial IPv6 fixes 2020-08-22 14:51:32 -05:00
Zack Scholl 7fd8fda107 default to port 9009 if port is lost during discovery
fixes #222
2020-07-15 10:47:56 -07:00
Zack Scholl 189d1f7b2a update deps 2020-05-01 06:59:09 -07:00
Zack Scholl 97bf35bf93 fix debug 2020-03-31 13:42:52 -07:00
Zack Scholl 72378947b5 update progressbar, show external ip on receiver 2020-03-31 13:33:27 -07:00
Zack Scholl aae56043cf bug fix: lock the chunk map
addresses #204
2020-03-18 03:06:50 +00:00
Zack Scholl 1dd75c4bc3 better error messages 2020-03-06 07:12:08 -08:00
Zack Scholl 8b6500adfd hide most of the code phrase to use as authentication 2020-03-06 07:05:04 -08:00
Zack Scholl bc1f89ff68 bump 8.0.0 2020-02-28 16:57:46 -08:00
Zack Scholl 5fce2a2e27 encrypt external ip 2020-02-28 12:58:46 -08:00
Zack Scholl 3c03719863 need to close goroutine corrrectly 2019-11-21 15:10:21 -08:00
Zack Scholl 5bafc99741 check if the purported IP is really local #168 2019-11-21 14:58:48 -08:00
Maxim Baz 1a544e4624
Support default port on receiver side 2019-11-20 01:11:52 +01:00
Zack Scholl 5faacd3328 try 9009 port by default #178 2019-11-19 15:19:53 -08:00
Zack Scholl 181dee9991 quit on bad password 2019-11-18 14:26:01 -08:00
Zack Scholl b9b3995f02 exit on EOF 2019-11-18 13:15:41 -08:00
Zack Scholl d0c2dc1be8 use one-byte pings 2019-11-18 13:09:17 -08:00
Zack Scholl 9d5eec4246 implement password addresses #173 2019-11-18 08:16:19 -08:00
Zack Scholl 648c41d707 use siec 2019-11-18 07:53:57 -08:00
Zack Scholl b4f8fafb63 don't hang it no acceptance
Fixes #171
2019-11-17 12:59:29 -08:00
Zack Scholl bdb8bf3ac4 addresing CPU usage #168 2019-11-11 11:26:12 -08:00
Zack Scholl c7624535e9 skip discovery 2019-10-28 13:13:03 -07:00
Zack Scholl da626334e0 check discoveries for right prefix 2019-10-28 12:46:24 -07:00
Zack Scholl ffddd3e989 prompt if sender wants to ask 2019-10-24 06:58:12 -07:00
Zack Scholl 9aa327a0a4 use machine ID 2019-10-23 14:59:47 -07:00
Zack Scholl 42c2d5c6c1 add ask flag 2019-10-23 14:07:52 -07:00
Zack Scholl af39b8ca14 pad filenames according to longest filename 2019-10-07 16:20:24 -07:00
Zack Scholl 5d89bdb6f9 reduce complexity 2019-09-20 10:06:50 -07:00
Zack Scholl c46a9d3ae0 reduce complexity 2019-09-20 10:06:26 -07:00
Zack Scholl ae81dd9a7b reduce complexity 2019-09-20 10:05:29 -07:00
Zack Scholl 4e94a22300 reduce complexity 2019-09-20 10:03:06 -07:00
Zack Scholl 8be63bed43 reduce complexity 2019-09-20 10:00:52 -07:00
Zack Scholl a7435a08bd reduce complexity 2019-09-20 09:59:24 -07:00
Zack Scholl 22ead388cd reduce complexity 2019-09-20 09:57:18 -07:00
Zack Scholl 7ac7e5d56d reduce complexity 2019-09-20 09:54:10 -07:00
Zack Scholl cfbd65be31 reduce complexity 2019-09-20 09:47:47 -07:00
Zack Scholl 07c20e2cde reduce complexity 2019-09-20 09:45:42 -07:00
Zack Scholl 24abf4fdd8 reduce complexity 2019-09-20 09:43:16 -07:00
Zack Scholl 768ad9b739 reduce complexity 2019-09-20 09:41:58 -07:00
Zack Scholl 6202d0d932 reduce complexity 2019-09-20 09:32:32 -07:00
Zack Scholl f89dd01e87 add more tests 2019-09-08 05:53:30 -07:00
Zack Scholl 33aa006c26 fix spelling 2019-09-07 09:49:08 -07:00
Zack Scholl 31c1a37b38 fix linting 2019-09-07 09:46:04 -07:00
Zack bc6803eeef
use single reader (#155)
* dunno

* close file after finished

* fix debugging statements

* use single reader

* update deps
2019-09-07 07:34:05 -07:00
Zack Scholl 4150feddf0 skip checking each file each time 2019-08-27 09:51:37 -07:00
Zack Scholl 88b4001dd7 bug fix: create directories for empty files 2019-07-20 08:55:54 -07:00
Zack Scholl 2735c42a9d send empty files 2019-07-19 17:46:02 -07:00
Zack Scholl 83db5bdc68 Merge branch 'master' of https://github.com/schollz/croc 2019-07-19 17:42:22 -07:00
Zack Scholl fe1329c909 handle if the file is zero bytes 2019-07-19 17:39:25 -07:00
Zack Scholl 8b178881cf display relay in UI if not using default
Fixes #143
2019-07-17 14:12:48 -06:00
Zack Scholl 9968bbf824 addressing issue #141
the local relay is not being used and then the connection is refused but it still hangs
in that case is that the sender should give up, prompting the user to try again
2019-07-17 13:04:03 -06:00
Zack Scholl fe231fa67a remove machineid from deps 2019-07-14 19:31:44 -07:00
Zack Scholl 30f1233f74 fix tests 2019-05-09 23:02:35 -06:00
Zack Scholl 257607a26f use my logger instead of seelog 2019-05-08 21:03:54 +00:00
Zack Scholl a6512975ff fix debug statement 2019-05-03 13:55:17 -07:00
Zack 1f3d30c78e
Use relay as backup to find local ports (#127) 2019-05-03 13:51:27 -07:00
Zack Scholl 9f9b93cf47 share chunk ranges instead of chunks Fixes #125 2019-05-03 07:30:35 -07:00
Zack Scholl ee38e7243e more debug 2019-05-02 20:51:13 -07:00
Zack Scholl da09151db2 more debug 2019-05-02 20:48:21 -07:00
Zack Scholl 63f4553e4b more debug 2019-05-02 20:47:41 -07:00
Zack Scholl 8beaf65007 more debug 2019-05-02 20:45:21 -07:00
Zack Scholl 5e8ef27b85 more debug 2019-05-02 20:44:25 -07:00
Zack Scholl 09575a0c88 more debug 2019-05-02 20:43:39 -07:00
Zack Scholl aeb30ef187 use xxhash 2019-05-02 20:36:49 -07:00
Zack Scholl 3e6a554532 get local IP 2019-05-02 17:14:24 -07:00
Zack Scholl 38e7cae977 document purged error 2019-05-02 17:12:19 -07:00
Zack Scholl 6f5225ac91 purge errors on successful transfer 2019-05-02 17:11:01 -07:00
Zack Scholl dccaff32cf default stdout 2019-05-02 16:37:43 -07:00
Zack Scholl 7377f536fc update ui and readme 2019-05-02 12:08:23 -07:00
Zack Scholl 462fad8d8e modify discover parameters 2019-05-02 11:50:01 -07:00
Zack Scholl 9cf4050913 no limit to sender discoveries 2019-05-02 11:47:19 -07:00
Zack Scholl aae63876d6 use local port 2019-05-02 11:45:42 -07:00
Zack Scholl 7af57b3390 slightly larger bar 2019-05-02 11:44:54 -07:00
Zack Scholl 2e5f33c081 print out securing 2019-05-02 11:44:10 -07:00
Zack Scholl 95c2b0f48a Don't throw error if cannot connect to server 2019-05-02 11:41:03 -07:00
Zack Scholl 2b42c5365c don't show ui each time 2019-05-01 17:52:37 -06:00
Zack Scholl 67f69c892d use external ip in ui 2019-05-01 17:49:49 -06:00
Zack Scholl 359dc4549b share public ip as info 2019-05-01 17:44:09 -06:00
Zack Scholl b109b419de save the extenral ip 2019-05-01 17:27:49 -06:00
Zack Scholl ecfdb2d440 stdout should erase file 2019-05-01 13:09:47 -06:00
Zack Scholl 4a27806ffe allow local 2019-05-01 12:30:58 -06:00
Zack Scholl 48819a9e03 disable local 2019-05-01 11:59:12 -06:00
Zack Scholl 29dceee8f4 fixes 2019-05-01 11:39:14 -06:00
Zack Scholl 5bffeabbba print connecting message 2019-05-01 11:03:16 -06:00
Zack Scholl f3e2a260d9 update relay address if a peer is found 2019-05-01 10:38:31 -06:00
Zack Scholl 883dff96b8 sender should be able to connect to the port 2019-05-01 10:33:34 -06:00
Zack Scholl 4be02ad249 get ports from tcp server 2019-04-30 17:39:36 -06:00
Zack Scholl 1275c6b1b5 get tcp port information from banner 2019-04-30 17:19:10 -06:00
Zack Scholl c5bbdb4cb5 allow banner 2019-04-30 17:09:44 -06:00
Zack Scholl 63ec16f7fb add banner 2019-04-30 17:05:19 -06:00
Zack Scholl 23c9a9cff8 longer bar 2019-04-30 16:26:16 -06:00
Zack Scholl 9952da9f6d use random salt 2019-04-30 16:10:07 -06:00
Zack Scholl e72795985b fix tests with nodisable flag 2019-04-30 15:46:27 -06:00
Zack Scholl a1e5a283f9 move file info stuff 2019-04-30 15:39:59 -06:00
Zack Scholl 002cc0050c can switch between local and nonlocal 2019-04-30 13:07:30 -06:00
Zack Scholl a58a0df910 add peer 2019-04-30 12:55:18 -06:00
Zack Scholl 89e4871af2 redo 2019-04-30 12:49:51 -06:00
Zack Scholl f4d24a1f72 update 2019-04-30 12:46:35 -06:00
Zack Scholl 7060eec8d1 need two ways to connect 2019-04-30 11:39:45 -06:00
Zack Scholl a70aa0a4fc make initial connection 2019-04-30 11:35:27 -06:00
Zack Scholl 8f816304f9 make initial connection 2019-04-30 11:35:02 -06:00
Zack Scholl ce45c53b38 make initial connection 2019-04-30 11:32:11 -06:00
Zack Scholl a35779f718 block connection 2019-04-30 11:30:36 -06:00
Zack Scholl 2583313602 allow discovery 2019-04-30 11:23:53 -06:00
Zack Scholl b9d2be5378 add discovery 2019-04-30 11:19:03 -06:00
Zack Scholl d56a25cf76 make sure bar finishes 2019-04-30 10:43:52 -06:00
Zack Scholl c8fdd4726a simplify ui 2019-04-30 09:24:32 -07:00
Zack Scholl 3bf7635f33 improve ui 2019-04-30 08:58:09 -07:00
Zack Scholl 87d295f62b simplify bar add 2019-04-30 07:51:48 -07:00
Zack Scholl be7c2ad1fb check if missing chunks file exists 2019-04-30 07:47:05 -07:00
Zack Scholl 04844cf72c check if missing chunks file exists 2019-04-30 07:44:16 -07:00
Zack Scholl 6da93ae8da allow resume 2019-04-30 07:29:02 -07:00
Zack Scholl 4f20f3ce43 connect in parallel 2019-04-30 07:07:23 -07:00
Zack Scholl 000dfc15be fiX comm 2019-04-30 06:57:45 -07:00
Zack Scholl 42d35898b5 progressbar is not accurate in total 2019-04-29 21:25:30 -07:00
Zack Scholl c1c8e39499 working 2019-04-29 20:40:42 -07:00
Zack Scholl ac113dfe47 initial part works 2019-04-29 19:50:01 -07:00
Zack Scholl cee4c36f8b prune 2019-04-29 17:12:04 -06:00
Zack Scholl b52001e064 prune 2019-04-29 17:05:48 -06:00
Zack Scholl 1045bd17b5 update croc 2019-04-29 16:54:31 -06:00
Zack Scholl 1f49966bb1 use new version of croc 2019-04-29 16:48:17 -06:00
Zack Scholl d05e196139 return errors through websockets 2018-10-21 07:20:23 -07:00
Zack Scholl 62bf674365 add more info to win 2018-10-19 06:36:45 -07:00
Zack Scholl 48933b5ecc better ui for window 2018-10-17 21:38:29 -07:00
Zack Scholl f9dfa6bc05 add window recipient prompt 2018-10-17 18:14:45 -07:00
Zack Scholl 24e0573116 update progressbar 2018-10-17 10:20:09 -07:00
Zack Scholl 6a899492f5 add state 2018-10-17 06:39:02 -07:00
Zack Scholl 47ab799c6f add file stats to state 2018-10-17 06:19:01 -07:00
Zack Scholl 55d9137b6d add state 2018-10-17 06:13:38 -07:00
Zack Scholl 8734394bb8 merge sender and recipient into croc 2018-10-17 06:13:38 -07:00
Zack Scholl 81bc14f29b multiplex 8 tcp ports 2018-10-11 10:55:46 -07:00
Zack Scholl af11143cba suppress logging messages when ctl+c interrupting
update readme
2018-10-11 06:51:03 -07:00
Zack Scholl ec5d45307a seems to work, with problems 2018-09-25 17:09:45 -07:00
Zack Scholl 667edd0373 multiple tcp ports 2018-09-25 15:14:58 -07:00
Zack Scholl a7b8488040 use all procs 2018-09-25 12:33:51 -07:00
Zack Scholl 7891f27b62 fix test 2018-09-24 08:35:24 -07:00
Zack Scholl e10789b558 allow forcing using websockets 2018-09-24 07:17:35 -07:00
Zack Scholl e8ef8e1c61 add test 2018-09-24 07:00:48 -07:00
Zack Scholl 384de31c5a allow TCP connections as alternative 2018-09-23 18:00:00 -06:00
Zack Scholl 4d9455c24b add no prompt option 2018-09-22 11:57:04 -06:00
Zack Scholl f709df4d3e show spinner 2018-09-22 11:57:04 -06:00
Zack Scholl 55bd83576a show text 2018-09-22 11:57:04 -06:00
Zack Scholl caf5511805 add zipping 2018-09-21 21:50:20 -07:00
Zack Scholl 274fab92a1 fixes so it works (basically) 2018-09-21 20:51:43 -07:00
Zack Scholl b9dad87526 completely rewrite 2018-09-21 20:17:57 -07:00