Skip to content

Commit

Permalink
Fix address argument for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrysbita authored Dec 14, 2021
1 parent 52358e4 commit 91ebe76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Classes/SwiftFlutterVpnPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 91ebe76

Please sign in to comment.