NAS 上通过 alist + caddy 运行 webdav 服务. 路由器上配置 DNS,局域网内域名解析为内网地址 192.168.1.2. 局域网外解析为公网地址.
使用相同域名,思源在局域网内网上无法通过 webdav 同步,日志如下. 在公网同步正常. 用 macos 自带的 webdav 在局域网内网连接域名也正常.
W 2024/12/17 22:21:17 net.go:136: check url [https://alist.example.com:59999/dav/nas/Config/siyuan/] is online failed: Get "https://alist.example.com:59999/dav/nas/Config/siyuan/": dial tcp 192.168.1.2:59999: connect: no route to host
W 2024/12/17 22:21:18 net.go:136: check url [https://alist.example.com:59999/dav/nas/Config/siyuan/] is online failed: Get "https://alist.example.com:59999/dav/nas/Config/siyuan/": dial tcp 192.168.1.2:59999: connect: no route to host
W 2024/12/17 22:21:18 net.go:90: network is offline [checkURL=https://alist.example.com:59999/dav/nas/Config/siyuan/]
W 2024/12/17 22:21:20 net.go:136: check url [https://alist.example.com:59999/dav/nas/Config/siyuan/] is online failed: Get "https://alist.example.com:59999/dav/nas/Config/siyuan/": dial tcp 192.168.1.2:59999: connect: no route to host
W 2024/12/17 22:21:21 net.go:136: check url [https://alist.example.com:59999/dav/nas/Config/siyuan/] is online failed: Get "https://alist.example.com:59999/dav/nas/Config/siyuan/": dial tcp 192.168.1.2:59999: connect: no route to host
W 2024/12/17 22:21:21 net.go:90: network is offline [checkURL=https://alist.example.com:59999/dav/nas/Config/siyuan/]
E 2024/12/17 22:22:52 sync.go:591: sync failed caused by network: ReadDir /: Propfind "https://alist.example.com:59999/dav/nas/Config/siyuan/": dial tcp 192.168.1.2:59999: connect: no route to host
抓包,未发现思源并未尝试发起 TCP 连接 192.168.1.2:59999.
之前使用是没问题的,忘了从哪个版本开始这样了
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于