Commit Graph

920 Commits

Author SHA1 Message Date
Micheal Quinn
d3207e6190
First pass of upping rcodes for some of the functions that may have tool return codes clash. Also changing some logic for determine_os and determine_arch to make it a little more better 2019-08-15 20:06:04 -05:00
Quinn
51e77ba0c4
Update rewrite_todo.md 2019-08-14 17:07:43 -05:00
Quinn
f3efbb34af
Update rewrite_todo.md 2019-08-14 17:04:21 -05:00
Quinn
9e9f43c352
Update rewrite_todo.md 2019-08-13 23:16:46 -05:00
Quinn
27bc2e8c8a
Update rewrite_todo.md 2019-08-13 23:09:13 -05:00
Quinn
559807f97d
Forgot to update the function name for cygwin 2019-08-13 22:51:06 -05:00
Quinn
a31bc56c23
More Cygwin updates
Forgot to update the install logic case statement in main
2019-08-13 22:45:59 -05:00
Quinn
a9caea4d64
More WIndwos (cygwin) updates
Add install_file_cygwin function to support this case
2019-08-13 22:41:48 -05:00
Quinn
ec09a990af
Adding croc_dl_ext update
For when we are on a Windows/CYGWIN host
2019-08-13 22:34:40 -05:00
Micheal Quinn
a72172d11e
Adding update to checksum check function to always filter the checksum file based on downloaded file. Adding CYGWIN croc_os switch for windows support (needs more testing) 2019-08-13 22:28:26 -05:00
Quinn
081e267a19
check off bsds 2019-08-12 21:15:38 -05:00
Quinn
d429e09e95
quick todo file 2019-08-12 21:15:06 -05:00
Micheal Quinn
588dfe6c00
Removing cleanup logic. rm -rf in a script terrifies me. The script attempts to place it into the temp dir, so we will let the OS clean it up. 2019-08-12 14:40:46 -05:00
Micheal Quinn
e2e48d9e84
Adding in fix for macOS (Darwin) not having an install case. Uses the same logic from install_file_freebsd 2019-08-12 11:04:50 -05:00
Micheal Quinn
b8d1d11b68
Changing PREFIX to INSTALL_PREFIX to avoid clashing with possibly set environment variables. Adding logic to handle if we are on termux on android (adapted from previous croc install script). Adding an info message for what prefix was set to. Adding in armv71 support (need to add more or make this a generic case to catch more arm devices). 2019-08-12 10:53:09 -05:00
Micheal Quinn
34743118de
script header cleanup 2019-08-12 09:16:24 -05:00
Micheal Quinn
9c6f01ca91
swapping getopt (which apparently is not good to use) for getopts in an attempt to make it more cross-platform without having to break out the logic based on OS...again... 2019-08-11 17:07:43 -05:00
Micheal Quinn
d39266a36d
wrangling another batch of wild global vars that should be local vars 2019-08-11 16:35:51 -05:00
Micheal Quinn
bf15c4c424
Adding help message formatting. Adding in sudo check. Caught and fixed some global variables that should be local. 2019-08-11 16:00:56 -05:00
Micheal Quinn
2c2920eb9c
Adding description information. Added print message function for fancy colors in the output. 2019-08-11 15:33:42 -05:00
Micheal Quinn
e7d6d096a8
Adding in root check to install commands with fallback to sudo. Splitting install logic out based on host OS 2019-08-11 13:01:00 -05:00
Micheal Quinn
b0ac5024a4
Adding a function to handle creation of temp dir. Polished the checksum check function to handle more cases/OSes 2019-08-11 12:31:19 -05:00
Micheal Quinn
9530952eb6
Adding install function and cleanup function 2019-08-10 21:45:53 -05:00
Micheal Quinn
eaf448ddac
Adding install function and logic 2019-08-10 21:08:04 -05:00
Micheal Quinn
c82dda45d9
Adding in extract file logic. 2019-08-10 18:26:06 -05:00
Micheal Quinn
7a684e7266
moving the rewrite into the proper location 2019-08-10 17:57:37 -05:00
Micheal Quinn
d5a8d07d1c
Fixing the macos shasum call to fit into the checksum check 2019-08-02 14:37:56 -05:00
Micheal Quinn
2c27d7aabd
reverting line 147 2019-08-01 13:02:44 -05:00
Micheal Quinn
f8d60c0011
Adding in some fixes for FreeBSD (tested in a FreeNAS jail 'FreeBSD 11.2-STABLE') as well as a fix for the checksum logic not correctly comparing the checksums. This still needs testing on a MacOS host 2019-08-01 12:55:05 -05:00
Zack Scholl
e1e722fc5b bump 6.1.1 2019-07-20 10:01:10 -06: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
336f314854 bump 6.1.0 2019-07-18 07:22:38 -06:00
Zack Scholl
edc97915bd don't keep debug 2019-07-18 06:17:15 -07:00
Zack Scholl
256e0c51fa add save file for receiver 2019-07-18 06:13:11 -07:00
Zack Scholl
7fcf45cece remove unused code 2019-07-18 06:06:56 -07:00
Zack Scholl
6a8bdccb66 add receiver config 2019-07-17 18:16:50 -06:00
Zack Scholl
252e96a670 simplify toggling 2019-07-17 18:06:52 -06:00
Zack Scholl
97d18e1fbf toggling parameters 2019-07-17 17:26:42 -06:00
Zack Scholl
54fb8aec9d how to check if flag is set? 2019-07-17 17:23:50 -06:00
Zack Scholl
1d7976a61a save send remember 2019-07-17 16:19:32 -06:00
Zack Scholl
f18c2eae7e add get config dir 2019-07-17 15:55:43 -06:00
Zack Scholl
68ddbe7f14 small change 2019-07-17 14:33:02 -06: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
928ee1f496 bump 6.0.12 2019-07-14 20:33:47 -06:00
Zack Scholl
f6cafd76fd Merge branch 'master' of github.com:schollz/croc 2019-07-14 19:31:53 -07:00
Zack Scholl
fe231fa67a remove machineid from deps 2019-07-14 19:31:44 -07:00
Zack Scholl
57564314b0 bump 6.0.11 2019-07-06 10:17:37 -06:00
Zack Scholl
ba00eda176 bump 6.0.10 2019-06-20 07:10:37 -07:00
Zack Scholl
1d744f1b4a bump version 2019-06-17 13:28:56 -06:00
Zack Scholl
f35c5b88b6 bump 2019-06-11 10:05:34 -06:00
Zack Scholl
2e2700988b update deps 2019-06-04 09:31:24 -06:00
Zack Scholl
15034cc6d2 bump version 2019-05-27 08:01:37 -07:00
Zack Scholl
1975745d5f remove after test 2019-05-12 13:10:17 -06:00
Zack Scholl
6b288356b9 remove big file after testing 2019-05-12 13:09:10 -06:00
Zack Scholl
59b6558ce9 bump 2019-05-12 09:31:22 -06:00
Zack Scholl
8bdc71a06c version bump 2019-05-12 08:55:42 -06:00
Zack Scholl
c45d3c01e5 bump version 2019-05-10 07:16:00 -06:00
Zack Scholl
30f1233f74 fix tests 2019-05-09 23:02:35 -06:00
Zack Scholl
f91d52bead update version 2019-05-09 22:59:33 -06:00
Zack Scholl
0388e07689 remove flushing 2019-05-08 21:33:30 +00:00
Zack Scholl
257607a26f use my logger instead of seelog 2019-05-08 21:03:54 +00:00
Zack Scholl
8d3b240563 check room nil before closing 2019-05-06 14:56:17 -07:00
Zack Scholl
ba96be5024 update hash 2019-05-03 21:19:39 -06:00
Zack Scholl
bd9c7b5ae9 include hash 2019-05-03 21:19:04 -06:00
Zack Scholl
cb69e49283 include hash in version 2019-05-03 20:15:29 -07: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
fef1c3ca3b use imohash 2019-05-03 07:35:27 -07:00
Zack Scholl
9f9b93cf47 share chunk ranges instead of chunks Fixes #125 2019-05-03 07:30:35 -07:00
Zack Scholl
7d91f8200c better cleaning of empty rooms 2019-05-02 20:57:55 -07:00
Zack Scholl
1802ebcd00 use imohash 2019-05-02 20:53:02 -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
711690a0f2 use imohash as default as its faster 2019-05-02 20:28:31 -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
b7c817a04a update default.txt 2019-05-02 16:45:37 -07:00
Zack Scholl
dccaff32cf default stdout 2019-05-02 16:37:43 -07:00
Zack Scholl
2515cfa31e update version 2019-05-02 13:31:48 -07:00
Zack Scholl
78e4ee2b68 update version 2019-05-02 13:28:28 -07:00
Zack Scholl
2f4e5cdec4 update versoin 2019-05-02 13:25:03 -07:00
Zack Scholl
37b29aebce update version 2019-05-02 13:23:23 -07:00
Zack Scholl
9e61f38707 add go generate code for updating version 2019-05-02 13:14:09 -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
abc5e3f6c0 move install script 2019-05-02 11:31:26 -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
7162e5e45b collect ipaddr from connecting to tcp 2019-05-01 17:10:02 -06:00
Zack Scholl
494b224db0 fix 2019-05-01 13:49:58 -06:00
Zack Scholl
868051bc2a update ports 2019-05-01 13:48:09 -06:00
Zack Scholl
ecfdb2d440 stdout should erase file 2019-05-01 13:09:47 -06:00
Zack Scholl
eceddb364e reduce number of default ports 2019-05-01 12:32:00 -06:00
Zack Scholl
4a27806ffe allow local 2019-05-01 12:30:58 -06:00
Zack Scholl
b55af54b10 change message 2019-05-01 12:20:02 -06:00
Zack Scholl
e1745757ac change message 2019-05-01 12:17:53 -06:00
Zack Scholl
be1c1d6206 change message 2019-05-01 12:16:47 -06:00
Zack Scholl
655ffdb4c0 delete room on errors 2019-05-01 12:11:20 -06:00
Zack Scholl
9f6936e1ff small fix 2019-05-01 12:08:24 -06:00
Zack Scholl
48819a9e03 disable local 2019-05-01 11:59:12 -06:00
Zack Scholl
6ac4343213 increase verbosity 2019-05-01 11:45:13 -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
2c2c3f58ac ifix cliwq! 2019-04-30 23:26:32 +00: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
962ea50aee add back travis 2019-04-30 11:14:21 -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
e54045ef5a read until 4 bytes 2019-04-30 07:07:07 -07:00
Zack Scholl
3c051f4283 smaller packet 2019-04-30 06:58:57 -07:00
Zack Scholl
000dfc15be fiX comm 2019-04-30 06:57:45 -07:00
Zack Scholl
330e76e09c fix 2019-04-29 21:33:13 -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
859130a988 add croc test 2019-04-29 19:51:54 -07:00
Zack Scholl
ac113dfe47 initial part works 2019-04-29 19:50:01 -07:00
Zack Scholl
972dce1ec5 don't hardcode address 2019-04-29 19:20:03 -07:00
Zack Scholl
662bce58a3 allow sending 2019-04-29 19:19:48 -07:00
Zack Scholl
9223fc79e9 allow option to skip encryption 2019-04-29 19:19:25 -07:00
Zack Scholl
a17f3096a0 no isclosed 2019-04-29 18:55:37 -07:00
Zack Scholl
6b149480d4 add messaging 2019-04-29 18:03:19 -06:00
Zack Scholl
a7f12ca179 need to export encryption 2019-04-29 17:58:37 -06:00
Zack Scholl
7d9b199ca3 works 2019-04-29 17:38:49 -06:00
Zack Scholl
06541ee0d3 encapsulate 2019-04-29 17:29:36 -06:00
Zack Scholl
bbd7caa148 remove relay 2019-04-29 17:25:20 -06:00
Zack Scholl
ca0b898ca3 add tests 2019-04-29 17:24:37 -06:00
Zack Scholl
3685a887b8 add bytecountdecimal 2019-04-29 17:16:38 -06:00
Zack Scholl
cee4c36f8b prune 2019-04-29 17:12:04 -06:00
Zack Scholl
1661bbb221 remove wina nd zipper 2019-04-29 17:10:06 -06:00
Zack Scholl
7a8801f8f1 add the v5 main 2019-04-29 17:09:37 -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
dcc7689816 consolidate utils 2019-04-29 16:35:07 -06:00
Zack Scholl
376591384a add more to tests 2019-04-29 16:33:15 -06:00
Zack Scholl
9030aae880 fix test 2019-04-29 16:24:22 -06:00
Zack Scholl
2414593c91 test sending 40mb 2019-04-29 16:04:47 -06:00
Zack Scholl
5b0c52a97b don't dangle 2019-04-29 15:46:40 -06:00
Zack Scholl
ef25c556a9 use pointers 2019-04-29 14:06:18 -06:00
Zack Scholl
b9a5f450c5 simplify 2019-04-29 13:53:12 -06:00
Zack Scholl
8dc8783bd4 propogate errors 2019-04-27 17:03:05 -07:00
Zack Scholl
f238c4b22c modify api of salt 2019-04-27 16:49:00 -07:00
Zack Scholl
249c0d8ab0 faster encryption by generating key once 2019-04-27 11:15:38 -07:00
Zack Scholl
14dd892377 tcp communication better/simpler 2019-04-27 09:20:03 -07:00
Zack Scholl
43dbf98705 rotate multicast based on current time 2018-12-14 06:32:44 -08:00
Zack Scholl
e58fc14218 customize multicast address 2018-12-14 06:27:55 -08:00
Lars
d42a4f82a1 Add pure Go Windows GUI 2018-11-21 00:08:30 +01:00
Zack Scholl
068fdb77fc pass errors all the way back 2018-11-02 06:15:37 -07:00
Zack Scholl
8a882cc174 throttle the progress bar 2018-11-01 19:06:50 -07:00
Zack Scholl
cf2363fd4e add missing escape at end of cli app 2018-11-01 09:08:18 -07:00
Zack Scholl
e0081ea8a8 tell user codephrase is wrong if PAKE fails 2018-11-01 07:26:18 -07:00
Zack Scholl
a56334fc60 prompt user if accidently receiving 2018-11-01 07:08:57 -07:00
Zack Scholl
aefb15105a recipient quits if trying to connect without sender
Addresses #109
2018-11-01 06:56:40 -07:00
Zack Scholl
818e590d92 need to do chdir in goroutine 2018-10-24 07:19:03 -07:00
Zack Scholl
e57f3e3861 need to watch slashes 2018-10-24 06:48:05 -07:00
Zack Scholl
0ca74b010e minor zip fixes
Allows multiple zips.

Need to close file after zipping it.
2018-10-24 06:42:27 -07:00
Zack Scholl
562925b5e5 add missing execute bit for config dir 2018-10-23 06:19:53 -07:00
Zack Scholl
61d14be70d add compress test 2018-10-23 05:28:30 -07:00
Zack Scholl
08c84e9f85 connect to tcp in parallel 2018-10-22 20:34:04 -07:00
Zack Scholl
c2dd9091ff recipient listens to sender 2018-10-22 19:48:45 -07:00
Zack Scholl
e5fcc0d3ee add models 2018-10-22 19:42:39 -07:00
Zack Scholl
ea9aa3f8ec recipient websockets should check for errors 2018-10-22 19:41:50 -07:00
Zack Scholl
6a07e1538d sender listens for recipient to close 2018-10-22 19:39:16 -07:00
Zack Scholl
ab5df93d10 move reading to goroutine 2018-10-22 19:11:43 -07:00
Zack Scholl
3064ceef81 add output folder 2018-10-22 06:36:36 -07:00
Zack Scholl
3dc6d44c41 throw error if versions are incompatible 2018-10-21 10:46:04 -07:00
Zack Scholl
45b7eebbb9 use normal import 2018-10-21 09:05:27 -07:00
Zack Scholl
69b19c7e78 recipient also uses codephrase 2018-10-21 08:25:53 -07:00
Zack Scholl
81bc06eabb add configuration file 2018-10-21 08:21:58 -07:00
Zack Scholl
1ae117166a add config default 2018-10-21 07:54:59 -07:00
Zack Scholl
0d17219c87 add initial struct fixes #98 2018-10-21 07:45:05 -07:00
Zack Scholl
9e7661c1b0 update deps 2018-10-21 07:43:45 -07:00
Zack Scholl
7371f6f238 remove utils dependency 2018-10-21 07:38:04 -07:00
Zack Scholl
23d451540c update cli 2018-10-21 07:33:29 -07:00
Zack Scholl
e591c6afb6 better error message when interrupting 2018-10-21 07:31:35 -07:00
Zack Scholl
9349496111 recipient sends back initial data 2018-10-21 07:25:43 -07:00
Zack Scholl
6e10ed25af recipient sends errors through websockets 2018-10-21 07:23:48 -07:00
Zack Scholl
d05e196139 return errors through websockets 2018-10-21 07:20:23 -07:00
Zack Scholl
4aab058344 add windows icon 2018-10-20 07:02:51 -07:00
Zack Scholl
dc6493374a open folder if no arguments given 2018-10-19 10:18:49 -07:00
Zack Scholl
5ecbab6673 fix release 2018-10-19 07:54:20 -07:00
Zack Scholl
f94790dc75 add release 2018-10-19 07:50:43 -07:00
Zack Scholl
92af0b46ab add release 2018-10-19 07:46:42 -07:00
Zack Scholl
4e55b1efd1 don't do debug 2018-10-19 07:33:08 -07:00
Zack Scholl
0e4fff7378 open folder after receiving 2018-10-19 07:30:24 -07:00
Zack Scholl
79f7e9af41 add icons 2018-10-19 07:25:22 -07:00
Zack Scholl
62bf674365 add more info to win 2018-10-19 06:36:45 -07:00
Zack Scholl
ec148d98c1 make sure recipient connects to TCP first 2018-10-18 09:35:08 -07:00
Zack Scholl
e85eaac9e3 add parent window 2018-10-18 06:45:32 -07:00
Zack Scholl
366d3c527c fix fprintf 2018-10-18 06:40:24 -07:00
Zack Scholl
3b498d57cf switch to window 2018-10-18 06:36:16 -07:00
Zack Scholl
82e274875d fix zipping on windows 2018-10-18 06:34:48 -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
4ee008225e add makefile for the windows version 2018-10-17 16:57:36 -07:00
Zack Scholl
24e0573116 update progressbar 2018-10-17 10:20:09 -07:00
Zack Scholl
56e0068129 send file works 2018-10-17 07:41:13 -07:00
Zack Scholl
93942f4e0c give stop signals to servers 2018-10-17 07:38:21 -07:00
Zack Scholl
157ab169aa sending is working for wincroc 2018-10-17 07:01:44 -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
3bed0bc8bf move files here 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
0bbf2841ca use build tags 2018-10-16 15:59:04 -07:00
Zack Scholl
144102a721 window based croc 2018-10-16 15:48:22 -07:00
Zack Scholl
9a41d9099b move main to cli 2018-10-16 12:23:01 -07:00
Zack Scholl
2fb21245ab delete old rooms 2018-10-13 06:13:50 -07:00
Zack Scholl
cc6edd24d1 connect to TCP as early as possible 2018-10-13 06:09:55 -07:00
Zack Scholl
a63666cf24 run all tests 2018-10-11 15:32:19 -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
91e065529b fix timeout 2018-10-09 21:17:51 -07:00
Zack Scholl
42344a4c6e fix corruption 2018-10-09 21:17:51 -07:00
Zack Scholl
d1e1694631 more debug 2018-10-09 21:17:47 -07:00
Zack Scholl
9d2f07f478 copy tcp writing into byte array 2018-10-09 21:17:47 -07:00
Zack Scholl
b0164920c7 increase timeout 2018-10-09 21:17:47 -07:00
Zack Scholl
6955f19439 recipient can easily stop now 2018-10-09 19:01:50 -07:00
Zack Scholl
d50c8f271f remove created zip directory after finish 2018-10-09 17:11:54 -07:00
Zack Scholl
3984aaeee2 remove file if overwriting 2018-10-09 16:50:18 -07:00
Zack Scholl
71ba80cee0 zip without chdir 2018-10-09 16:40:03 -07:00
Zack Scholl
9335aca877 fix file descriptor 2018-10-09 07:03:33 -07:00
Zack Scholl
edda09df00 fix file descriptor 2018-10-09 07:03:06 -07:00
Zack Scholl
c600b51888 resume works with websockets or tcp 2018-10-09 06:56:38 -07:00
Zack Scholl
e18938fb70 change name of croc zip 2018-10-09 06:33:25 -07:00
Zack Scholl
9940856317 rearrange block communication 2018-10-09 06:32:49 -07:00
Zack Scholl
61d57ad0af sender and recipient share blocks 2018-10-09 06:01:21 -07:00
Zack Scholl
66a37ae5b2 reduce number of packets 2018-10-09 04:50:38 -07:00
Zack Scholl
fdfa7f209d revert to da2b22f 2018-09-26 14:31:45 -07:00
Zack Scholl
bc4bd2b0a8 don't use writer 2018-09-26 11:11:19 -07:00
Zack Scholl
8ddd7aff06 flush once 2018-09-26 11:07:17 -07:00
Zack Scholl
cc0ef58b9f use netconn 2018-09-26 10:54:11 -07:00
Zack Scholl
21cfcc0bc2 use netconn 2018-09-26 10:53:47 -07:00
Zack Scholl
928b28dc80 use netconn 2018-09-26 10:51:28 -07:00
Zack Scholl
fecc8d5897 use netconn 2018-09-26 10:46:36 -07:00
Zack Scholl
420d2be271 use netconn 2018-09-26 10:43:38 -07:00
Zack Scholl
1261a16b55 try fix 2018-09-26 10:09:11 -07:00
Zack Scholl
558d9133a6 try fix 2018-09-26 10:03:13 -07:00
Zack Scholl
267056b3fd try fix 2018-09-26 09:55:14 -07:00
Zack Scholl
4e3138e099 try fix 2018-09-26 09:48:11 -07:00
Zack Scholl
a6b33fe046 try fix 2018-09-26 09:45:36 -07:00
Zack Scholl
ecf8cbcdda try fix 2018-09-26 09:42:45 -07:00
Zack Scholl
f6e2560742 try fix 2018-09-26 09:41:12 -07:00
Zack Scholl
ea7ed1a2db try fix 2018-09-26 09:40:40 -07:00
Zack Scholl
e92c7f15f1 try fix 2018-09-26 09:39:18 -07:00
Zack Scholl
3fc8edfef9 try fix 2018-09-26 09:38:37 -07:00
Zack Scholl
089d2bbe1a try fix 2018-09-26 09:36:25 -07:00
Zack Scholl
0bd4a0ac75 try fix 2018-09-26 09:27:36 -07:00
Zack Scholl
7a961ecffd try fix 2018-09-26 09:26:44 -07:00
Zack Scholl
d2a708eaaa try fix 2018-09-26 09:24:40 -07:00
Zack Scholl
b573f5c853 try fix 2018-09-26 09:23:07 -07:00
Zack Scholl
1049e9c8c8 try fix 2018-09-26 09:20:20 -07:00
Zack Scholl
113452d459 try fix 2018-09-26 09:14:24 -07:00
Zack Scholl
1954691f44 try fix 2018-09-26 09:13:11 -07:00
Zack Scholl
182a9fe2f4 try fix 2018-09-26 09:12:38 -07:00
Zack Scholl
42c0240e50 try fix 2018-09-26 09:11:36 -07:00
Zack Scholl
73d8eadce4 try fix 2018-09-26 08:54:01 -07:00
Zack Scholl
c0e9d478e7 try fix 2018-09-26 08:46:12 -07:00
Zack Scholl
82b0d2d4c0 use tcpconn 2018-09-26 07:53:46 -07:00
Zack Scholl
ab70b53998 use writers in relay 2018-09-26 07:41:07 -07:00
Zack Scholl
085dd4e4c3 implement readers and writers all around 2018-09-26 07:39:45 -07:00
Zack Scholl
ea548f290c increase size 2018-09-26 06:57:52 -07:00
Zack Scholl
1a7b123519 increase size 2018-09-26 06:53:46 -07:00
Zack Scholl
ae13f82c9e increase size 2018-09-26 06:53:01 -07:00
Zack Scholl
f483a6ab9c increase size 2018-09-26 06:51:34 -07:00
Zack Scholl
02196654d9 update 2018-09-26 06:49:39 -07:00
Zack Scholl
7d5d7e6cfb update 2018-09-26 06:48:07 -07:00
Zack Scholl
082dcd2037 revert 2018-09-26 06:44:07 -07:00
Zack Scholl
62d9d74753 increase buffer 2018-09-26 06:43:31 -07:00
Zack Scholl
f2f1b31fbc increase buffer size 2018-09-26 06:39:26 -07:00
Zack Scholl
397ceea34c revert 2018-09-26 06:36:47 -07:00
Zack Scholl
0b3d19a52e optimize relay 2018-09-26 06:35:51 -07:00
Zack Scholl
da2b22f73d less printing 2018-09-25 19:49:05 -07:00
Zack Scholl
5a94062171 whoops 2018-09-25 19:29:33 -07:00
Zack Scholl
a59399630d fixes 2018-09-25 19:25:27 -07:00
Zack Scholl
162b12f42b don't need this anymore 2018-09-25 18:56:36 -07:00
Zack Scholl
efa66f7cbe better marshaling 2018-09-25 18:38:19 -07:00
Zack Scholl
7f0b919b0b fix bar 2018-09-25 18:25:12 -07:00
Zack Scholl
c8c532c5dd small fix 2018-09-25 17:24:06 -07:00
Zack Scholl
71fee31da0 TCP ports use lots 2018-09-25 17:18:43 -07:00
Zack Scholl
ec5d45307a seems to work, with problems 2018-09-25 17:09:45 -07:00
Zack Scholl
02e8021735 fix recipient 2018-09-25 16:14:41 -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
f62459e1a4 move reading to goroutine 2018-09-25 09:55:35 -07:00
Zack Scholl
75f7cdcf65 introduce magic bytes to stop 2018-09-25 09:39:18 -07:00
Zack Scholl
ee7518c7bd use best compression 2018-09-25 09:27:32 -07:00
Zack Scholl
02e63b6473 make faster 2018-09-25 09:17:23 -07:00
Zack Scholl
196c9253b8 use best compression 2018-09-25 07:31:21 -07:00
Zack Scholl
1a22d37c2d do compression in thread 2018-09-25 07:29:55 -07:00
Zack Scholl
f169b12109 simplify test 2018-09-24 16:16:33 -07:00
Zack Scholl
44fad198e7 close correctly 2018-09-24 16:10:04 -07:00
Zack Scholl
7df06272b8 make sure to close connection 2018-09-24 16:05:34 -07:00
Zack Scholl
f56d5c797c use enc/comp in test 2018-09-24 13:24:18 -07:00
Zack Scholl
7147980eac encryption faster with simpler marshaling 2018-09-24 12:52:19 -07:00
Zack Scholl
8bfbe36dd9 do minimal compression 2018-09-24 12:41:35 -07:00
Zack Scholl
2f47dd3178 disable compression/enc 2018-09-24 12:21:38 -07:00
Zack Scholl
6635c84f70 raise tcp size 2018-09-24 09:36:48 -07:00
Zack Scholl
7891f27b62 fix test 2018-09-24 08:35:24 -07:00
Zack Scholl
f6c2382c0a fix 2018-09-24 08:32:17 -07:00
Zack Scholl
26f0fc3319 ok windows seems to work now 2018-09-24 08:29:54 -07:00
Zack Scholl
5397634217 works on linux? 2018-09-24 07:51:56 -07:00
Zack Scholl
02f4b08929 not working dunno why 2018-09-24 07:51:24 -07:00
Zack Scholl
55b1fa35e4 add both tests 2018-09-24 07:29:44 -07:00
Zack Scholl
b202682596 local relay runs with tcp port too 2018-09-24 07:26:52 -07:00
Zack Scholl
b14f1c35a3 disable broadcast 2018-09-24 07:24:59 -07:00
Zack Scholl
e10789b558 allow forcing using websockets 2018-09-24 07:17:35 -07:00
Zack Scholl
80d48d45d5 test works 2018-09-24 07:06:55 -07:00
Zack Scholl
e8ef8e1c61 add test 2018-09-24 07:00:48 -07:00
Zack Scholl
90b08abf39 allow discovering self 2018-09-24 06:49:26 -07:00
Zack Scholl
e6b9655387 add benchmark 2018-09-24 06:13:43 -07:00
Zack Scholl
50c29e7334 simplify 2018-09-24 06:10:31 -07:00
Zack Scholl
711f8dfeec improve comm 2018-09-23 19:24:57 -07:00
Zack Scholl
ba20bb63ca fix again 2018-09-23 18:00:00 -06:00
Zack Scholl
45fe9b422d fiX 2018-09-23 18:00:00 -06:00
Zack Scholl
975bab61fb make tcp optional 2018-09-23 18:00:00 -06:00
Zack Scholl
b7c447473d change buffer size 2018-09-23 18:00:13 -06:00
Zack Scholl
73c33ebe02 fix sending 2018-09-23 18:00:00 -06:00
Zack Scholl
fe38107c42 no log 2018-09-23 18:00:00 -06:00
Zack Scholl
7651ed0562 don't count empty bytes 2018-09-23 18:00:09 -06:00
Zack Scholl
2ebe3c1328 update read 2018-09-23 18:00:00 -06:00
Zack Scholl
47fe8a2116 don't count empty bytes 2018-09-23 18:00:00 -06:00
Zack Scholl
a8c0c02755 add read deadline 2018-09-23 18:00:00 -06:00
Zack Scholl
8fab2299a1 change buffer size 2018-09-23 18:00:00 -06:00
Zack Scholl
4f9532b761 remove old comments 2018-09-23 18:00:00 -06:00
Zack Scholl
da9634c949 change buffer size 2018-09-23 18:00:05 -06:00
Zack Scholl
b2939a0452 fix websocket address 2018-09-23 18:00:00 -06:00
Zack Scholl
2788a4e742 communicate tcp port to sender/receiver 2018-09-23 18:00:00 -06:00
Zack Scholl
384de31c5a allow TCP connections as alternative 2018-09-23 18:00:00 -06:00
Zack Scholl
177612f112 update buffer 2018-09-23 18:00:00 -06:00
Zack Scholl
2f800f1de3 add buffer size 2018-09-23 18:00:00 -06:00
Zack Scholl
8797d35fa1 use single variable for buffer size 2018-09-23 18:00:00 -06:00
Zack Scholl
c9dab1ca44 gather file info async, encrypt file info 2018-09-23 18:00:00 -06:00
Zack Scholl
76cb610ffd exchange IP addresses 2018-09-23 18:00:00 -06:00
Zack Scholl
d860fe1e9e better ui handling with spinner 2018-09-23 18:00:00 -06:00
Zack Scholl
8afc75f1fc listen for interrupt in websockets 2018-09-23 18:00:00 -06:00
Zack Scholl
0a0c0bfd32 send local/public status 2018-09-23 18:00:00 -06:00
Zack Scholl
f3df177ba2 functions to get local/public IP 2018-09-23 18:00:00 -06:00
Zack Scholl
7799d2fb58 use spinner fork 2018-09-23 18:00:00 -06:00
Zack Scholl
232f3375b1 only compress if its not a directory 2018-09-22 10:59:45 -07:00
Zack Scholl
c6374da410 toggle encryption/compression 2018-09-22 11:57:04 -06:00
Zack Scholl
f977ac24c4 add is compressed/encrypted to filestats 2018-09-22 11:57:18 -06:00
Zack Scholl
1f64d1c93a check if discovered is valid 2018-09-22 11:57:04 -06:00
Zack Scholl
10111b92cd spinner should be in stderr 2018-09-22 11:57:04 -06:00
Zack Scholl
e13f8e7067 allow stdout 2018-09-22 11:57:04 -06:00
Zack Scholl
1acbe9c475 relay log more 2018-09-22 11:57:04 -06:00
Zack Scholl
73791a4dc7 change buffer size 2018-09-22 11:57:04 -06:00
Zack Scholl
b469d5db4b increase write wait 2018-09-22 11:57:15 -06:00
Zack Scholl
742a935ea9 don't wait for ok 2018-09-22 11:57:11 -06:00
Zack Scholl
54b22cd732 increase buffer 2018-09-22 11:57:08 -06:00
Zack Scholl
9cf6bdf4a8 move file processing until after recipient chimes in 2018-09-22 11:57:04 -06:00
Zack Scholl
4d9455c24b add no prompt option 2018-09-22 11:57:04 -06:00
Zack Scholl
7513702e9c add transfer complete 2018-09-22 11:57:04 -06:00
Zack Scholl
66eeab25fb better spinner 2018-09-22 11:57:04 -06:00
Zack Scholl
82315ca413 recipient use public OR local 2018-09-22 11:57:04 -06:00
Zack Scholl
cd3a936795 add recipient finish line 2018-09-22 11:57:04 -06:00
Zack Scholl
b1aeedb107 tell server no 2018-09-22 11:57:04 -06:00
Zack Scholl
6d9c829579 prompt user if its okay to receive file 2018-09-22 11:57:04 -06:00
Zack Scholl
1add7e94c9 get receive code if empty 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
91532085c7 add more text 2018-09-22 11:57:04 -06:00
Zack Scholl
f3eb85dd95 add randome name 2018-09-22 11:57:04 -06:00
Zack Scholl
ebac8beaaa use stderr for output 2018-09-22 11:57:04 -06:00
Zack Scholl
40672a4eaa update readme 2018-09-22 11:57:04 -06:00
Zack Scholl
0528bb22ea determine room from first three chars of codephrase 2018-09-22 11:57:04 -06:00
Zack Scholl
4fd172b6fc fix getting hash 2018-09-22 11:57:04 -06:00
Zack Scholl
6911848141 zip should accomodate relative links 2018-09-22 11:57:04 -06:00
Zack Scholl
9af7c05dc6 remove the zip file if not debug 2018-09-22 11:57:04 -06:00
Zack Scholl
c4cfa9b07f unzip in current location 2018-09-22 11:57:04 -06:00
Zack Scholl
11ab8a8078 written file should onlybe name 2018-09-22 11:57:04 -06:00
Zack Scholl
a225a08dbc add exists 2018-09-22 11:57:04 -06:00
Zack Scholl
80471c7d02 hash the sent name 2018-09-22 11:56:59 -06:00
Zack Scholl
f9ed7553af use sent name 2018-09-21 21:55:07 -07:00
Zack Scholl
83f199b213 add zipping to sending 2018-09-21 21:52:29 -07:00
Zack Scholl
5bf4ff1866 add dirname 2018-09-21 21:50:30 -07:00
Zack Scholl
caf5511805 add zipping 2018-09-21 21:50:20 -07:00
Zack Scholl
b6b6b754c9 don't show error on 1005 2018-09-21 21:40:39 -07:00
Zack Scholl
24493cf7f5 add peer discovery 2018-09-21 21:35:33 -07:00
Zack Scholl
828f83601d fix hash file 2018-09-21 21:13:46 -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
Zack Scholl
87a17fb9e6 add go.mod 2018-09-07 08:33:39 -06:00
Zack Scholl
53e0585f21 bar finish in wrong spot 2018-07-10 13:59:44 -07:00
Zack Scholl
b8f647291a increase timeouts 2018-07-10 08:43:54 -07:00
Zack Scholl
53db42fe5f update ui 2018-07-07 10:08:55 -07:00
Zack Scholl
9e02fa746c use to/from slash 2018-07-07 10:08:18 -07:00
Zack Scholl
c01bc56079 wait longer on an abnormal finish 2018-07-07 10:08:18 -07:00
Zack Scholl
d906630f3a try to cleanup files 2018-07-07 10:08:18 -07:00
Zack Scholl
0c920a27ab implement dynamic hash 2018-07-07 10:08:17 -07:00
Zack Scholl
db50a7eee0 add bytes to progress bar 2018-07-07 10:08:17 -07:00
Zack Scholl
68d42cdadd show spinners 2018-07-07 10:08:17 -07:00
Zack Scholl
2ce63b5cda add spinner for recipient 2018-07-07 10:08:17 -07:00
Zack Scholl
11566c710d fix bug in relay which couldn't handle regular http requests 2018-07-07 10:08:17 -07:00
Zack Scholl
4e88975ed4 use best speed 2018-07-07 10:08:17 -07:00
Zack Scholl
09a16cacd5 remove partially sent files 2018-07-07 10:08:17 -07:00
Zack Scholl
9c22753ae4 add gifs 2018-07-07 10:08:17 -07:00
Zack Scholl
594029891e don't print 2018-07-07 10:08:17 -07:00
Zack Scholl
280faf7657 implement HEAD request 2018-07-07 10:08:17 -07:00
Zack Scholl
846e3d5d00 show the transfer rate 2018-07-07 10:08:16 -07:00
Zack Scholl
8373e374cd discover faster 2018-07-07 10:08:16 -07:00
Zack Scholl
efee59f541 check meta data for decryption flag 2018-07-07 10:08:16 -07:00
Zack Scholl
7be11a6fda flag is no compress 2018-07-07 10:08:16 -07:00
Zack Scholl
bc34811750 encrypt only if flagged 2018-07-07 10:08:16 -07:00
Zack Scholl
ba3fa6ffce Make sure to remove croc-stdin 2018-07-07 10:08:16 -07:00
Zack Scholl
a1611ccc88 don't broadcast channel 2018-07-07 10:08:16 -07:00
Zack Scholl
0ec32e3f9a clean up after local file transfer 2018-07-07 10:08:16 -07:00