smb: fix shares not listed by updating go-smb2

Before this change the IP address of the server was used in the SMB
connect request (see CloudSoda/go-smb2#18).
The updated library now can pass the hostname instead.

The update requires a small change in the dial method call.

Fixes rclone#6672
This commit is contained in:
halms
2023-11-29 15:39:27 +00:00
committed by Nick Craig-Wood
parent 4d4f3de5a5
commit 58339845f4
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ func (f *Fs) dial(ctx context.Context, network, addr string) (*conn, error) {
},
}
session, err := d.DialContext(ctx, tconn)
session, err := d.DialConn(ctx, tconn, addr)
if err != nil {
return nil, err
}