automatically set the target of a 'socks' backend to the text 'socks'

This commit is contained in:
Michael Quigley 2024-02-28 11:23:20 -05:00
parent 88eb7a40de
commit 4fe29d73f9
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -99,6 +99,7 @@ func (cmd *sharePrivateCommand) run(_ *cobra.Command, args []string) {
if len(args) != 0 {
tui.Error("the 'socks' backend mode does not expect <target>", nil)
}
target = "socks"
default:
tui.Error(fmt.Sprintf("invalid backend mode '%v'; expected {proxy, web, tcpTunnel, udpTunnel, caddy, drive}", cmd.backendMode), nil)