Commit 885149879cca59c2ce6026317e4313cddd38eb6d
1 parent
dd488281
Exists in
master
and in
3 other branches
Ativação do SSL pelo diálogo não estava reajustando a URL
Showing
2 changed files
with
10 additions
and
1 deletions
Show diff stats
host.c
options.c
... | ... | @@ -83,6 +83,15 @@ LIB3270_EXPORT void lib3270_set_options(H3270 *hSession, LIB3270_OPTION opt) |
83 | 83 | { |
84 | 84 | CHECK_SESSION_HANDLE(hSession); |
85 | 85 | hSession->options = opt; |
86 | + | |
87 | + Replace(hSession->host.full, | |
88 | + lib3270_strdup_printf( | |
89 | + "%s%s:%s", | |
90 | + hSession->options&LIB3270_OPTION_SSL ? "tn3270s://" : "tn3270://", | |
91 | + hSession->host.current, | |
92 | + hSession->host.srvc | |
93 | + )); | |
94 | + | |
86 | 95 | } |
87 | 96 | |
88 | 97 | LIB3270_EXPORT unsigned short lib3270_get_color_type(H3270 *hSession) | ... | ... |