-
Notifications
You must be signed in to change notification settings - Fork 54
fix: receive error by switching to local croc build #217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,6 @@ import ( | |
| "strings" | ||
| "time" | ||
|
|
||
| "github.com/schollz/croc/v9/src/croc" | ||
| "github.com/schollz/croc/v9/src/models" | ||
| "github.com/spf13/cobra" | ||
| ) | ||
|
|
@@ -62,14 +61,17 @@ var ReceiveCmd = &cobra.Command{ | |
| } | ||
| relay := relays[relayIndex] | ||
|
|
||
| crocOptions := croc.Options{ | ||
| crocOptions := Options{ | ||
| Curve: "p256", | ||
| Debug: false, | ||
| DisableLocal: true, | ||
| HashAlgorithm: "xxhash", | ||
| IsSender: false, | ||
| NoPrompt: true, | ||
| Overwrite: true, | ||
| RelayAddress: relay.Address, | ||
| RelayPassword: relay.Password, | ||
| RelayPorts: strings.Split(relay.Ports, ","), | ||
| SharedSecret: sharedSecretCode, | ||
| } | ||
|
Comment on lines
+64
to
76
|
||
|
|
||
|
|
@@ -79,7 +81,7 @@ var ReceiveCmd = &cobra.Command{ | |
| crocOptions.RelayAddress = "" | ||
| } | ||
|
|
||
| cr, err := croc.New(crocOptions) | ||
| cr, err := New(crocOptions) | ||
|
||
| if err != nil { | ||
| log.Fatalf("croc: %v", err) | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
Optionstype is referenced without a package qualifier, but the upstream importgithub.com/schollz/croc/v9/src/crochas been removed. IfOptionsis not defined in the current package or properly imported from a local package, this will result in a compilation error.