Skip to content

Commit 1f5de8c

Browse files
committed
refactor: tunnel changes
1 parent 90f02b1 commit 1f5de8c

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

internal/controller/tcp/cira/tunnel.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ import (
55
"crypto/tls"
66
"encoding/hex"
77
"errors"
8+
"fmt"
89
"log"
910
"net"
1011
"sync"
1112
"time"
1213

13-
"github.com/open-amt-cloud-toolkit/console/internal/usecase/devices"
14-
"github.com/open-amt-cloud-toolkit/console/internal/usecase/devices/wsman"
15-
"github.com/open-amt-cloud-toolkit/go-wsman-messages/v2/pkg/apf"
16-
wsman2 "github.com/open-amt-cloud-toolkit/go-wsman-messages/v2/pkg/wsman"
17-
"github.com/open-amt-cloud-toolkit/go-wsman-messages/v2/pkg/wsman/client"
14+
"github.com/device-management-toolkit/console/internal/usecase/devices"
15+
"github.com/device-management-toolkit/console/internal/usecase/devices/wsman"
16+
"github.com/device-management-toolkit/go-wsman-messages/v2/pkg/apf"
17+
wsman2 "github.com/device-management-toolkit/go-wsman-messages/v2/pkg/wsman"
18+
"github.com/device-management-toolkit/go-wsman-messages/v2/pkg/wsman/client"
1819
)
1920

2021
const (
@@ -186,7 +187,7 @@ func generateDeviceID() string {
186187
if err != nil {
187188
log.Fatal(err)
188189
}
189-
190+
fmt.Println(hex.EncodeToString(data))
190191
return hex.EncodeToString(data)
191192
}
192193

internal/usecase/devices/wsman/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (g GoWSMANMessages) SetupWsmanClient(device entity.Device, isRedirection, l
125125
if device.MPSUsername != "" {
126126
connection := Connections[device.GUID]
127127
cp := client.Parameters{
128-
IsRedirection: true,
128+
IsRedirection: false,
129129
Connection: connection.Conny,
130130
Username: device.MPSUsername,
131131
Password: device.Password,

0 commit comments

Comments
 (0)