■ ■ ■ ■ ■ ■
internal/server/webserver/buildmanager.go
| skipped 40 lines |
41 | 41 | | cachePath string |
42 | 42 | | ) |
43 | 43 | | |
44 | | - | func Build(goos, goarch, suppliedConnectBackAdress, fingerprint, name, comment string, shared, upx, garble bool) (string, error) { |
| 44 | + | func Build(goos, goarch, suppliedConnectBackAdress, fingerprint, name, comment, proxy string, shared, upx, garble bool) (string, error) { |
45 | 45 | | if !webserverOn { |
46 | | - | return "", fmt.Errorf("web server is not enabled.") |
| 46 | + | return "", errors.New("web server is not enabled") |
47 | 47 | | } |
48 | 48 | | |
49 | 49 | | if len(goarch) != 0 && !validArchs[goarch] { |
| skipped 105 lines |
155 | 155 | | return "", err |
156 | 156 | | } |
157 | 157 | | |
158 | | - | buildArguments = append(buildArguments, fmt.Sprintf("-ldflags=-s -w -X main.destination=%s -X main.fingerprint=%s -X github.com/NHAS/reverse_ssh/internal.Version=%s", suppliedConnectBackAdress, fingerprint, strings.TrimSpace(f.Version))) |
| 158 | + | buildArguments = append(buildArguments, fmt.Sprintf("-ldflags=-s -w -X main.destination=%s -X main.fingerprint=%s -X main.proxy=%s -X github.com/NHAS/reverse_ssh/internal.Version=%s", suppliedConnectBackAdress, fingerprint, proxy, strings.TrimSpace(f.Version))) |
159 | 159 | | buildArguments = append(buildArguments, "-o", f.Path, filepath.Join(projectRoot, "/cmd/client")) |
160 | 160 | | |
161 | 161 | | cmd := exec.Command(buildTool, buildArguments...) |
| skipped 201 lines |