Mac OS VPN Connection Programmatically
问题 I want to create code which will create new connection with L2TP Protocol . below is my code. I didn't find any error but code run successfully and create new network but it's not showing data which i passes e.g username. - (IBAction)connectVPN_Cliced:(NSButton *)sender{ VPNServiceConfig *config = [[VPNServiceConfig alloc]init]; config.username = @"username"; config.password = @"password"; config.endpointPrefix = @"Server IP end prefix"; config.endpointSuffix = @"Server IP end endpointSuffix"