1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-28 09:35:14 +03:00
Commit Graph

864 Commits

Author SHA1 Message Date
Khang. Nguyen Khac Nguyen
9f54f2d08f chore(comm): cleanup comm Write func
+ better handling error.
+ use Send instead of Write since we do not need number of bytes sent.
2020-10-21 15:16:42 +07:00
Zack Scholl
f5624007c8 bump 8.5.2 2020-10-19 11:04:43 -07:00
Zack Scholl
9b6c33c300 bump 8.5.2 2020-10-19 11:04:42 -07:00
Zack Scholl
b66cfb4cc1 disable ipv6 for peer-to-peer discovery since it causes issues 2020-10-19 11:02:48 -07:00
Zack Scholl
539d66806a bump 8.5.1 2020-10-13 15:48:43 -07:00
Zack Scholl
768f3e1318 bump 8.5.1 2020-10-13 15:48:43 -07:00
Zack Scholl
a968f494fa better help 2020-10-13 15:47:53 -07:00
Zack Scholl
911bb22b2d better environmental variable 2020-10-13 15:47:00 -07:00
Zack Scholl
f3697f6aad reduce packets sent for peer discovery 2020-10-13 13:47:43 -07:00
Zack Scholl
5374be1a0f use dns to determine relay 2020-10-13 12:26:11 -07:00
Zack Scholl
1d874b5dbe bump 8.5.0 2020-10-12 12:34:47 -07:00
Zack Scholl
586fc08768 bump 8.5.0 2020-10-12 12:34:47 -07:00
Zack
5a2d51c060
bash continues if autocompletion fails to install
Fixes #286
2020-10-09 07:16:17 -07:00
Zack
3396743d73
allow proxying connection (#283) 2020-10-05 08:30:45 -07:00
Zack Scholl
e75b75164f bump 8.4.0 2020-10-04 13:16:36 -07:00
Zack Scholl
224c442567 bump 8.4.0 2020-10-04 13:16:35 -07:00
Zack
669920d4b5
Merge pull request #281 from TheQueasle/253-autocomplete-install
First pass at adding in the autocomplete files to the installer script
2020-10-04 13:12:04 -07:00
fooofei
5a0ec9431f fix resource leak of *os.File 2020-10-04 10:38:30 +08:00
fooofei
bc8c5db898 fix possible panic of nil compressor 2020-10-04 10:38:04 +08:00
fooofei
c877497cc9 user io.ReadFull for shorter connection read code 2020-10-04 10:37:36 +08:00
Micheal Quinn
4675976f08 First pass at adding in the autocomplete files to the installer script 2020-09-29 22:19:10 -05:00
ABDUL NIYAS P M
4ce170e73d
Fix a typo in cli.go 2020-09-23 16:28:00 +05:30
Zack Scholl
43d2ff0a09 find open ports to open local relay 2020-09-21 06:02:13 -07:00
Zack Scholl
78e4d5e179 add util to find open ports 2020-09-21 05:51:50 -07:00
Sebastian Falbesoner
a313a96a8e fix send without argument (trigger intended error message) 2020-09-19 21:48:11 +02:00
Sebastian Falbesoner
2de73cb138 show all files when sending without send command 2020-09-19 17:52:32 +02:00
Zack Scholl
7b15dcd2dc fork urfave/cli 2020-09-17 13:04:33 -07:00
Zack Scholl
fda0bf7fd4 bump 8.3.2 2020-09-16 14:54:02 -07:00
Zack Scholl
7d155adcf1 bump 8.3.2 2020-09-16 14:54:02 -07:00
Zack
b144fa28e7
Merge pull request #260 from masterZSH/master
Use hex.EncodeToString to encode to hex
2020-09-16 11:00:09 -07:00
masterZSH
f9f32a4b0e Use hex.EncodeToString to encode to hex 2020-09-16 16:37:21 +08:00
Zack Scholl
32bb98fd4f fix making publish 2020-09-15 12:46:07 -07:00
masterZSH
833668e8f2 Add error reporting 2020-09-15 09:33:43 +08:00
Zack Scholl
8a0800ca90 better error 2020-09-13 12:15:05 -07:00
Zack Scholl
4fc40274db use default bash complete 2020-09-13 12:11:18 -07:00
Zack Scholl
8c116cf66a add autocompletion 2020-09-12 08:42:19 -07:00
jolheiser
ccba416e85
Env vars for a few CLI options
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-09-09 10:25:13 -05:00
jolheiser
5ad8bd8e2c
Fix aliases
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-09-09 10:06:13 -05:00
jolheiser
9a20d507a7
Update CLI to v2
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-09-09 10:05:57 -05:00
Zack Scholl
a5e882ec25 bump 8.3.1 2020-09-06 08:47:32 -07:00
Zack Scholl
9d5302b1b7 bump 8.3.1 2020-09-06 08:47:31 -07:00
Zack Scholl
bdb859c15c use version 2020-09-06 08:45:59 -07:00
Zack Scholl
22c35412ac bump 8.3.1 2020-09-06 08:44:04 -07:00
Zack Scholl
f2af0b7ed5 bump 8.3.1 2020-09-06 08:44:03 -07:00
Zack Scholl
5d6546ba58 tag 2020-09-06 08:43:14 -07:00
Zack Scholl
f4fe211bbe bump 8.3.2 2020-09-06 08:42:51 -07:00
Zack Scholl
f950633a86 bump 8.3.2 2020-09-06 08:37:37 -07:00
Zack Scholl
65b6111512 push before prepare 2020-09-06 08:37:10 -07:00
Zack Scholl
2db2a914f2 bump 8.3.1 2020-09-06 08:33:14 -07:00
Zack Scholl
345ef0567e compute filename and deliver without overwriting 2020-09-05 17:23:07 -07:00
Zack Scholl
e771e20ac4 fix version 2020-09-04 06:08:38 -07:00
Zack Scholl
5e78725afa Fixes #240 2020-09-04 06:06:48 -07:00
Zack Scholl
fc14ef25ed version with v 2020-09-03 15:55:52 -07:00
Zack Scholl
b48c96fc37 bump 8.3.0 2020-09-03 15:51:13 -07:00
Zack Scholl
87e54acd8a add option to disable compression Fixes #239 2020-09-03 15:09:23 -07:00
Zack Scholl
555ddec5e3 handle symlinks Fix #238 2020-09-03 14:57:09 -07:00
Zack Scholl
ff99b07ef1 gather symlink info 2020-09-03 14:49:08 -07:00
Zack Scholl
26056a8366 test release 2020-09-03 14:21:43 -07:00
Zack Scholl
11efb6be5e get version from env varaible 2020-09-03 14:17:12 -07:00
Zack Scholl
bd2376e920 allow getting password through file Fix #226 2020-09-03 13:31:01 -07:00
Zack Scholl
def4f94ffd Merge branch 'master' of github.com:schollz/croc into master 2020-09-03 12:45:47 -07:00
Zack Scholl
bbc0ce4e9c better info about incorrect passwords Fixes 237 2020-09-03 12:45:40 -07:00
Zack Scholl
8b6c0d1c39 bump 8.2.1 2020-09-03 11:40:29 -07:00
Zack Scholl
d55327d344 bump 8.2.1 2020-09-03 11:40:23 -07:00
Zack Scholl
c7ba55fc83 use default port of 9009 if none found #236 2020-09-03 09:53:14 -07:00
Zack Scholl
81ad30c633 bump 8.2.0 2020-09-02 17:37:17 -07:00
Zack Scholl
0eb095bf76 println 2020-09-02 17:35:36 -07:00
Zack Scholl
8fbb7e5019 send and receive text 2020-09-02 17:33:53 -07:00
Zack Scholl
48d63e4854 text works 2020-09-02 17:24:32 -07:00
Zack Scholl
ea781e569b bug fix: propogate error when connecting 2020-09-02 09:46:31 -07:00
Zack Scholl
a8c5bef7c0 raise max bytes to allow huge files #231 2020-09-01 09:32:03 -07:00
Zack Scholl
b188a2691e bump 8.1.3 2020-08-31 11:58:07 -07:00
Zack Scholl
7bc9dc1826 bump 8.1.2 2020-08-27 10:49:30 -07:00
Zack Scholl
2345148fde make sure conn is not nil 2020-08-27 10:13:47 -07:00
Zack Scholl
50bf003022 try ipv6 first 2020-08-27 09:40:41 -07:00
Zack Scholl
695444159e add default ipv6 relay 2020-08-27 09:24:19 -07:00
Zack Scholl
0533f0c96e release auto 2020-08-27 08:15:01 -07:00
Zack Scholl
52182099eb bump 8.1.1 2020-08-27 08:13:07 -07:00
Zack Scholl
e250eeede6 add makefile for releases 2020-08-27 08:12:47 -07:00
Zack Scholl
4aa7f05630 slightly more debugging 2020-08-27 08:10:44 -07:00
Zack Scholl
3a805f8be3 bump 8.1.0 2020-08-26 19:16:25 -07:00
Zack Scholl
588e650d80 don't split host if localhost 2020-08-26 17:46:35 -07:00
Zack Scholl
baddb93c4e local ipv6 works 2020-08-26 14:56:57 -07:00
Zack Scholl
c9a58513e1 attempt to use ipv6 discoveries 2020-08-26 14:42:49 -07:00
Zack Scholl
ae384490d6 don't create folder if its a . 2020-08-26 09:55:59 -07:00
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
0beeebc351 bump 8.0.13 2020-08-12 09:59:07 -07:00
Zack Scholl
4deced8827 bump 8.0.13 2020-08-12 09:58:13 -07:00
Zack Scholl
81e9f772a1 bump 8.0.13 2020-08-12 09:57:18 -07:00
Zack Scholl
009f36f16c bump 8.0.13 2020-08-12 09:49:29 -07:00
Zack Scholl
fdf383b2d7 bump 8.0.12 2020-07-15 10:48:52 -07: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
0377223a67 fix tests: generate file in reproducible way #218 2020-05-18 07:20:51 -07:00
Zack Scholl
23c21bcafd bump 8.0.11 2020-05-12 11:33:03 -07:00
Zack Scholl
532cfa9cd9 bump 8.0.11 2020-05-12 05:41:57 -07:00
Zack Scholl
14f6a4a8be add example gif 2020-05-08 10:58:51 -07:00
Zack Scholl
93e45c6942 bump 8.0.10 2020-05-06 10:55:14 -07:00
Zack Scholl
6dc44ec002 faster pake 2020-05-06 10:50:57 -07:00
Zack Scholl
4211cea92e add benchmark for tcp connection 2020-05-06 10:18:39 -07:00
Zack Scholl
1740bda985 bump 8.0.9 2020-05-01 07:00:17 -07:00
Zack Scholl
189d1f7b2a update deps 2020-05-01 06:59:09 -07:00
Zack Scholl
86ebbaa618 bump 8.0.8 2020-04-24 08:17:24 -07:00
Zack Scholl
2e7708e3cd whoops 2020-04-22 07:08:08 -07:00
Zack Scholl
cb522f2f06 debugging the comm 2020-04-22 06:24:47 -07:00
Zack Scholl
3ed036b51d bug fix: increase deadline for reading in channels, addresses #211 2020-04-20 12:30:07 -07:00
Zack Scholl
a3e81e1d87 bump 8.0.7 2020-04-09 10:12:30 -07:00
Zack Scholl
e56e65207f bump 8.0.7 2020-04-09 09:55:36 -07:00
Zack Scholl
f9f4f291da use debug instead of warn/error addresses #205 2020-04-09 09:54:04 -07:00
Maxim Baz
c058bcbb6b
relay: show version on startup
Since relay is a long-running process, I find myself in situations where I dont know which version of croc I have running.

This simple startup log will make it obvious.
2020-04-09 17:44:19 +02:00
Zack Scholl
9bf470ef29 bump 8.0.6 2020-04-09 08:02:10 -07:00
Zack Scholl
9c0bc3efc3 bug fix: two read deadlines to prevent memory leak
addresses #205
2020-04-09 07:40:39 -07:00
Zack Scholl
386f4ff958 bump 8.0.5 2020-03-31 13:43:13 -07:00
Zack Scholl
97bf35bf93 fix debug 2020-03-31 13:42:52 -07:00
Zack Scholl
f8fd239eec bump 8.0.5 2020-03-31 13:34:10 -07:00
Zack Scholl
72378947b5 update progressbar, show external ip on receiver 2020-03-31 13:33:27 -07:00
Zack Scholl
b0125b63e7 test should not exceed max bytes 2020-03-27 09:38:09 -07:00
Zack Scholl
b60a841044 bug fix: prevent crazy number of bytes getting into comm 2020-03-27 09:32:41 -07:00
Zack Scholl
44c3d43fa0 bump 8.0.4 2020-03-24 08:37:14 -07:00
Zack Scholl
aae56043cf bug fix: lock the chunk map
addresses #204
2020-03-18 03:06:50 +00:00
Zack Scholl
09d35d248f bump 8.0.3 2020-03-08 07:15:32 -07:00
Zack Scholl
03fe1c770a bump 8.0.2 2020-03-06 07:15:04 -08: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
3cf474e6e8 more tests 2020-03-02 10:10:17 -08:00
Zack Scholl
820225b684 more tests 2020-03-02 10:06:20 -08:00
Zack Scholl
eddf361893 bump 8.0.1 2020-03-02 09:42:34 -08:00
Zack Scholl
2d6206b84f bump 8.0.1 2020-03-02 09:35:35 -08:00
Zack Scholl
074a869d6e bump 8.0.0 2020-03-02 09:04:25 -08:00
Zack Scholl
5e37a308fe throw error when submitting bad passphrase to relay 2020-02-28 17:05:03 -08:00
Zack Scholl
bc1f89ff68 bump 8.0.0 2020-02-28 16:57:46 -08:00
Zack Scholl
0b99be5b30 update year 2020-02-28 13:27:44 -08:00
Zack Scholl
c3adc2981f encrypt external ip 2020-02-28 13:02:23 -08:00
Zack Scholl
5fce2a2e27 encrypt external ip 2020-02-28 12:58:46 -08:00
Zack Scholl
d5846bc88d encrypt all communication with relay 2020-02-28 11:59:56 -08:00
Zack Scholl
4c56ec283d bump 6.4.11 2020-02-18 11:28:36 -08:00
Roman
df79b2ed8e croc: secret phrase parsing
what:
- `croc alpha beta gamma` is now properly understood as
 `croc alpha-beta-gamma`.

why:
- to increase convenience.
2020-02-17 21:31:56 -07:00
Zack Scholl
29882db39b bump 6.4.10 2020-01-15 09:14:37 -08:00
Zack Scholl
d6694a9b41 bump 6.4.9 2020-01-15 08:07:22 -08:00
Zack Scholl
5369fbc3aa bump 6.4.9 2020-01-15 08:06:28 -08:00
Zack Scholl
fbcad738bb bump 6.4.8 2019-12-23 14:49:22 -08:00
Zack Scholl
25902edf5b bump 6.4.7 2019-12-16 07:38:56 -08:00
Zack Scholl
3d9bbff7a7 bump 6.4.7 2019-12-16 07:38:18 -08:00
Zack Scholl
02be7abe32 bump 6.4.7 2019-12-16 07:37:57 -08:00
Micheal Quinn
247a698757 Adding in EUID check to create_prefix. Also adding in more checks to that function to make sure the tools needed are available. 2019-11-26 14:18:30 -06:00
Micheal Quinn
47d84b9947 Adding rcode for completness sake on the create_prefix function. 2019-11-26 13:50:31 -06:00
Micheal Quinn
f6ad8f57cf Adding a function that creates a prefix and logic surrounding it to only create it if it does not already exist 2019-11-26 13:41:38 -06:00
Zack Scholl
f52447acd9 bump 6.4.6 2019-11-21 15:24:25 -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