浏览代码

Fix #684: support path appended to hostname

master
Arun Prakash Jana 4 年前
父节点
当前提交
f4ff4b0793
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. +8
    -1
      src/nnn.c

+ 8
- 1
src/nnn.c 查看文件

@@ -4027,8 +4027,15 @@ static bool remote_mount(char *newpath)

/* Convert "Host" to "Host:" */
size_t len = xstrlen(tmp);
bool path = FALSE;

if (tmp[len - 1] != ':') { /* Append ':' if missing */
for (size_t count = 0; count < len; ++count)
if (tmp[count] == ':') {
path = TRUE;
break;
}

if (!path) { /* Append ':' if missing */
tmp[len] = ':';
tmp[len + 1] = '\0';
}


正在加载...
取消
保存