From 91ebe76f4f626f21ef09b1e106650deecee84059 Mon Sep 17 00:00:00 2001 From: "Jason C.H" Date: Tue, 14 Dec 2021 20:43:58 +0800 Subject: [PATCH] Fix address argument for iOS --- ios/Classes/SwiftFlutterVpnPlugin.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Classes/SwiftFlutterVpnPlugin.swift b/ios/Classes/SwiftFlutterVpnPlugin.swift index 7bdaad5..1590336 100644 --- a/ios/Classes/SwiftFlutterVpnPlugin.swift +++ b/ios/Classes/SwiftFlutterVpnPlugin.swift @@ -29,7 +29,7 @@ public class SwiftFlutterVpnPlugin: NSObject, FlutterPlugin { (call: FlutterMethodCall, result: FlutterResult) -> Void in if call.method == "connect" { let args = call.arguments! as! [NSString: NSString] - connectVPN(result: result, usrname: args["username"]!, pwd: args["password"]!, add: args["address"]!) + connectVPN(result: result, usrname: args["username"]!, pwd: args["password"]!, add: args["server"]!) } else if call.method == "disconnect" { stopVPN(result: result) } else if call.method == "getCurrentState" {