Skip to content

Commit e8c55ee

Browse files
committed
connect: resident proxy set initial device state
1 parent 7de259a commit e8c55ee

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

connect/resident_proxy.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ func NewResidentProxyDevice(
7272
return nil, err
7373
}
7474

75+
if initialDeviceState := proxyDeviceConfig.InitialDeviceState; initialDeviceState != nil {
76+
deviceLocal.SetPerformanceProfile(initialDeviceState.PerformanceProfile)
77+
deviceLocal.SetConnectLocation(initialDeviceState.Location)
78+
}
79+
7580
proxyDevice := &ResidentProxyDevice{
7681
ctx: cancelCtx,
7782
cancel: cancel,

0 commit comments

Comments
 (0)