From ddc05b6e5b09ad03e9660daea22c05d12024caca Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Mon, 10 Aug 2020 20:32:27 -0300 Subject: [PATCH] Fixing host url. --- src/core/host.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/core/host.c b/src/core/host.c index 2c2d2f5..f19380d 100644 --- a/src/core/host.c +++ b/src/core/host.c @@ -274,7 +274,7 @@ static void update_url(H3270 *hSession) { char * url = lib3270_strdup_printf( - "%s//%s:%s", + "%s://%s:%s", hSession->network.module->name, hSession->host.current, hSession->host.srvc @@ -383,28 +383,6 @@ LIB3270_EXPORT int lib3270_set_url(H3270 *h, const char *n) if(!n) return errno = ENOENT; -/* - static const struct _sch - { - char ssl; - const char * text; - const char * srvc; - } sch[] = - { -#ifdef HAVE_LIBSSLx - { 1, "tn3270s://", "telnets" }, - { 1, "telnets://", "telnets" }, - { 1, "L://", "telnets" }, - { 1, "L:", "telnets" }, -#endif // HAVE_LIBSSL - - { 0, "tn3270://", "telnet" }, - { 0, "telnet://", "telnet" } - - }; - int f; -*/ - lib3270_autoptr(char) str = strdup(n); char * hostname = lib3270_set_network_module_from_url(h,str); const char * srvc; -- libgit2 0.21.2