-
Notifications
You must be signed in to change notification settings - Fork 644
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
GUACAMOLE-1167: Add server settings for RD gateway type. #559
base: main
Are you sure you want to change the base?
Conversation
@@ -1263,6 +1271,20 @@ guac_rdp_settings* guac_rdp_parse_args(guac_user* user, | |||
settings->gateway_port = | |||
guac_user_parse_args_int(user, GUAC_RDP_CLIENT_ARGS, argv, | |||
IDX_GATEWAY_PORT, 443); | |||
|
|||
char* gateway_type = guac_user_parse_args_string(user, GUAC_RDP_CLIENT_ARGS, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if this isn't set to any of these values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be more clear, it'd be nice if there was some documentation somewhere in here that briefly explains what happens in the default case where the gateway-type
parameter isn't set (or is set to some invalid value).
rdp_settings->GatewayHttpTransport = TRUE; | ||
rdp_settings->GatewayRpcTransport = TRUE; | ||
break; | ||
|
||
/* Gateway is forced to HTTP, so only enable HTTP transport. */ | ||
case GUAC_RDP_GATEWAY_HTTP: | ||
rdp_settings->GatewayHttpTransport = TRUE; | ||
rdp_settings->GatewayRpcTransport = FALSE; | ||
break; | ||
|
||
/* Gateway is forced to RPC, so only enable RPC transport. */ | ||
case GUAC_RDP_GATEWAY_RPC: | ||
rdp_settings->GatewayHttpTransport = FALSE; | ||
rdp_settings->GatewayRpcTransport = TRUE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add a block in the freerdp3 part (HAVE_SETTERS_GETTERS
):
freerdp_settings_set_bool(rdp_settings, FreeRDP_GatewayHttpTransport, TRUE)
freerdp_settings_set_bool(rdp_settings, FreeRDP_GatewayRpcTransport, TRUE)
No description provided.