Skip to content

Commit

Permalink
incus/remote: Clear Keepalive field for proxied connections
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Dec 11, 2023
1 parent 2172b7d commit 0cbc9cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/incus/remote_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ func (c *cmdRemoteProxy) Run(cmd *cobra.Command, args []string) error {

path := args[1]

remote := c.global.conf.Remotes[strings.TrimSuffix(remoteName, ":")]
remote.KeepAlive = 0
c.global.conf.Remotes[strings.TrimSuffix(remoteName, ":")] = remote

resources, err := c.global.ParseServers(remoteName)
if err != nil {
return err
Expand Down

0 comments on commit 0cbc9cd

Please sign in to comment.