1
0
镜像自地址 https://github.com/dockur/windows.git 已同步 2026-06-12 13:19:34 +08:00

fix: File sharing in user-mode (#1136)

这个提交包含在:
Kroese
2025-03-19 13:58:45 +01:00
提交者 GitHub
父节点 522d646fa3
当前提交 b7ad0d3d88
-6
查看文件
@@ -111,13 +111,7 @@ done
if ! smbd; then
error "Samba daemon failed to start!"
smbd -i --debug-stdout || true
else
if [[ "${NETWORK,,}" == "user"* ]]; then
NET_OPTS="${NET_OPTS/,hostfwd/,guestfwd=tcp:${VM_NET_IP%.*}.1:445-tcp:127.0.0.1:445,hostfwd}"
fi
fi
[[ "${NETWORK,,}" == "user"* ]] && return 0
if [[ "${BOOT_MODE:-}" == "windows_legacy" ]]; then
# Enable NetBIOS on Windows 7 and lower