Commit ddc05b6e5b09ad03e9660daea22c05d12024caca
1 parent
fd1173eb
Exists in
master
and in
3 other branches
Fixing host url.
Showing
1 changed file
with
1 additions
and
23 deletions
Show diff stats
src/core/host.c
| ... | ... | @@ -274,7 +274,7 @@ static void update_url(H3270 *hSession) |
| 274 | 274 | { |
| 275 | 275 | char * url = |
| 276 | 276 | lib3270_strdup_printf( |
| 277 | - "%s//%s:%s", | |
| 277 | + "%s://%s:%s", | |
| 278 | 278 | hSession->network.module->name, |
| 279 | 279 | hSession->host.current, |
| 280 | 280 | hSession->host.srvc |
| ... | ... | @@ -383,28 +383,6 @@ LIB3270_EXPORT int lib3270_set_url(H3270 *h, const char *n) |
| 383 | 383 | if(!n) |
| 384 | 384 | return errno = ENOENT; |
| 385 | 385 | |
| 386 | -/* | |
| 387 | - static const struct _sch | |
| 388 | - { | |
| 389 | - char ssl; | |
| 390 | - const char * text; | |
| 391 | - const char * srvc; | |
| 392 | - } sch[] = | |
| 393 | - { | |
| 394 | -#ifdef HAVE_LIBSSLx | |
| 395 | - { 1, "tn3270s://", "telnets" }, | |
| 396 | - { 1, "telnets://", "telnets" }, | |
| 397 | - { 1, "L://", "telnets" }, | |
| 398 | - { 1, "L:", "telnets" }, | |
| 399 | -#endif // HAVE_LIBSSL | |
| 400 | - | |
| 401 | - { 0, "tn3270://", "telnet" }, | |
| 402 | - { 0, "telnet://", "telnet" } | |
| 403 | - | |
| 404 | - }; | |
| 405 | - int f; | |
| 406 | -*/ | |
| 407 | - | |
| 408 | 386 | lib3270_autoptr(char) str = strdup(n); |
| 409 | 387 | char * hostname = lib3270_set_network_module_from_url(h,str); |
| 410 | 388 | const char * srvc; | ... | ... |