1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 05:11:06 +02:00
Commit graph

323 commits

Author SHA1 Message Date
Rahul Garg
241176d8a4
Update error message to be more verbose
Summary
----
This changes the error message (when connecting to an unavailble
channel) like so:

before:

```
$ croc 6764-jimmy-hilton-inside
securing channel...2024/03/28 17:16:25 room not ready
```

after:

```
$ ./croc 6764-jimmy-hilton-inside
securing channel...2024/03/28 17:16:12 room (secure channel) not ready, maybe peer disconnected
```
2024-03-28 17:16:01 -06:00
Travis
4f1f57b1ba remove unnecessary trailing newline character when stdout is enabled 2024-02-18 10:17:35 +08:00
qk-santi
48eb2a2a7c hide relay param if not going to be used 2024-02-12 09:30:20 +01:00
PThorpe92
0af35d7149
feat: add support to respect .gitignore files 2023-09-22 21:15:27 -04:00
Alexander Seiler
ad7a22b218
Fix some typos
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
2023-03-27 17:13:09 +02:00
Zack Scholl
b3c0625659 localhost -> 127.0.0.1 Fixes #513 2023-03-20 09:16:07 -07:00
stefins
24679d4e02
Chmod new file based on the source file mode 2023-02-10 14:53:06 +05:30
Zack Scholl
63feece074 add testing 2023-01-08 08:11:55 -08:00
Zack Scholl
07a67ed54e path -> fpath 2022-12-05 15:24:47 -08:00
Tai Groot
fa7ae114f5
run through gofumpt 2022-12-05 11:21:04 -08:00
IrishMaestro
f1e15a54ee
Typo fix
typo fix for the word relative
2022-10-22 17:18:16 -05:00
cui fliter
1c6583f925 fix some typos
Signed-off-by: cui fliter <imcusg@gmail.com>
2022-08-05 20:41:18 +08:00
Stefin
d226ba536e Fixed relative path / bug 2022-07-07 18:56:37 +05:30
Stefin
b50fe88474 Added support for sending relative folder 2022-07-07 02:58:49 +05:30
Stefin
37ae453ff7 Unzipping file at the reciever end 2022-07-07 00:06:11 +05:30
Stefin
ed030375e5 Modified the argument for GetFilesInfo in tests 2022-07-06 18:49:32 +05:30
Stefin
ad36e21051 Handling the --zip flag 2022-07-06 18:48:19 +05:30
Zack Scholl
b7e4a73c27 don't show number of folders if the number is 0 2022-05-18 16:57:00 -07:00
Zack Scholl
da5d19ef28 update deps and ui 2022-05-18 16:53:28 -07:00
DasSkelett
38ed8ecc3c
Fix relay IPv4 address resolution behind DNS64 2022-05-16 22:04:55 +02:00
RCL98
2ad8b1f1ce #463 fixed display at receiving end 2022-04-13 02:23:10 +03:00
RCL98
b316c0159f #463 fixed croc tests for empty folders, and to work in Windows 2022-04-11 00:02:26 +03:00
RCL98
f78ee15605 #463 fixed display for empty folders 2022-04-11 00:00:47 +03:00
iulius98
15d0209a29 #463 added capability to send/receive empty folders 2022-04-09 01:38:22 +03:00
Zack Scholl
53f35c1da0 fix ui when sending text 2022-02-23 07:57:40 -08:00
Zack
030ed2a03d
Merge pull request #456 from abhi12299/filenamePrefix
Fix renaming of file with prefix "croc-stdin" on receiver end
2022-02-23 07:52:27 -08:00
Zack Scholl
ef6683b550 add more tests 2022-02-23 07:25:13 -08:00
RCL98
7c1a59c102 #431 fixed remote folder name for Windows 2022-02-21 21:50:24 +02:00
iulius98
32a188fa85 #431 Integrate GetFilesInfo function with the code 2022-02-21 20:41:51 +02:00
RCL98
ce8fb796b3 #431 added file informations retrival functions to replace getPaths 2022-02-21 20:16:27 +02:00
iulius98
1a635de69c #454 fixed local transfer 2022-02-20 17:40:50 +02:00
Abhishek
9f66842322 fix sending file with prefix "croc-stdin" renaming on receiver end 2022-02-03 23:09:37 +05:30
Zack
f210ef8877
Merge pull request #435 from AmeyShrivastava/fix-typos
Fix Typos
2021-11-17 10:52:29 -08:00
Amey Shrivastava
2964ede174 Fix Typos (revised)
This commit fixes spelling mistakes (typos) at a few places in the codebase.
(Includes requested corrections)
2021-11-17 23:50:32 +05:30
Zack
c30492609e
Merge pull request #432 from mbattista/master
added throttle upload feature
2021-11-17 09:37:50 -08:00
Eng Zer Jun
1645759742
refactor: move from io/ioutil to io and os packages
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-11-17 11:39:11 +08:00
Marcel Battista
d372fa1fa4 fix panic on single digit throttles values 2021-10-19 13:10:43 +02:00
Marcel Battista
8ff3fb9b89 added throttle upload feature 2021-10-19 02:46:54 +02:00
Zack Scholl
a12f374aba can't use the github ci 8084 2021-10-04 08:02:27 -07:00
Zack Scholl
04662df347 fix local 2021-10-02 11:55:43 -07:00
Zack
d77c83ce09
Merge pull request #419 from kallydev/patch
Add host flag for relay
2021-10-02 10:35:00 -07:00
jolheiser
2381f26c61
Move to consts and "enum"
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2021-10-01 16:24:28 -05:00
KallyDev
de454bbf5a
add host flag for relay 2021-10-01 12:55:28 +08:00
Zack Scholl
86aeed93db move mutex to avoid race condition #407 2021-08-06 09:48:26 -07:00
Zack Scholl
d442755814 show preparing progress 2021-06-21 11:11:44 -07:00
Zack Scholl
ecf3eb872e allow selecting hash 2021-06-21 07:34:28 -07:00
Zack Scholl
4796404b7e show resume message if resuming
Fixes #402
2021-06-15 14:53:16 -07:00
Niko Köser
5e0d6522b0
refactor: accept enter in user prompts
Until now, the process of receiving a file was aborted when an
empty entry (Enter) was made. It is common under *nix that
pressing Enter without prior input of other characters selects
the default answer. This would also make the process more
fluid for croc.

In most usecases the default choice will be 'Y'/'Yes'. The only
exception is the prompt for overwriting existing files. We default
to 'N'/'No' in this prompt to prevent accidental overwriting of
files.
2021-06-10 14:12:05 +02:00
Zack Scholl
d0ebb7ad38 longer time for local connections 2021-05-12 07:04:10 -07:00
Zack Scholl
e47776bb10 fix 2021-05-07 10:21:24 -07:00