Giter Site home page Giter Site logo

myvpn's Introduction

myvpn's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

myvpn's Issues

NEEvaluateConnectionRuleActionConnectIfNeeded 这个有效果吗

NEOnDemandRuleEvaluateConnection * domainRule = [NEOnDemandRuleEvaluateConnection new];

NEEvaluateConnectionRule * domainMatch = [[NEEvaluateConnectionRule alloc]
                                          initWithMatchDomains:

@[@".twitter.com", @"www.twitter.com", @".google.com", @".google.com.hk", @".youtube.com",
@".googleusercontent.com",@".gstatic.com", @".ggpht.com",@".appspot.com", @".googleapis.com", @".google.cn",
@".fbcdn.net", @".staticflickr.com", @".twimg.com", @".ytimg.com", @".feedly.com",@".tinypic.com", @"*.instagram.com"] andAction:NEEvaluateConnectionRuleActionConnectIfNeeded];
domainRule.connectionRules = @[domainMatch];

[_vpnManager setOnDemandRules:@[domainRule]];

_vpnManager.onDemandEnabled = YES;

你好 这段代码有效果吗? 我自己也是这么写的 NEEvaluateConnectionRuleActionNeverConnect 这个枚举是可以的但是NEEvaluateConnectionRuleActionConnectIfNeeded 这个不知道具体要怎么写 希望能回复一下我 谢谢

project

你好,有个私活,有时间吗

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.