mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-09-30 11:35:40 +00:00
platform: Add shell support for iOS
This commit is contained in:
@@ -31,6 +31,9 @@ func (iosShellBackend) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func lookupSFTPServer(_ adapter.PlatformInterface) (string, error) {
|
||||
return "", E.New("sftp is not supported on iOS and tvOS")
|
||||
func lookupSFTPServer(platformInterface adapter.PlatformInterface) (string, error) {
|
||||
if platformInterface == nil {
|
||||
return "", E.New("sftp is not supported on iOS and tvOS")
|
||||
}
|
||||
return platformInterface.LookupSFTPServer()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user