mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 13:55:15 +02:00
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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user