Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adjust tunnellifetime to 1 hour #1485

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/stateMachines/ciraConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@
} else {
this.logger.error('Null object in addRemoteAccessPolicyRule()')
}
const policy: AMT.Models.RemoteAccessPolicyRule = {
Trigger: 2, // 2 – Periodic
TunnelLifeTime: 3600, // 3600 means that the tunnel should stay open for 1 hour then disconnect and reconnect. This prevents an issue where AMT can get into a disconnected state and never attempt to reconnect.
ExtendedData: 'AAAAAAAAABk=' // Equals to 25 seconds in base 64 with network order.
}
context.xmlMessage = context.amt.RemoteAccessService.AddRemoteAccessPolicyRule(policy, selector)

Check failure on line 141 in src/stateMachines/ciraConfiguration.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find name 'context'.

Check failure on line 141 in src/stateMachines/ciraConfiguration.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find name 'context'.

Check failure on line 141 in src/stateMachines/ciraConfiguration.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find name 'selector'. Did you mean 'Selection'?
return await invokeWsmanCall(context, 2)

Check failure on line 142 in src/stateMachines/ciraConfiguration.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find name 'context'.
}

getEnvironmentDetectionSettings = async ({ input }: { input: CIRAConfigContext }): Promise<any> => {
Expand Down
Loading