react-native-mcheck-proxy

1.0.5 • Public • Published

react-native-mcheck-proxy

检测是否挂了代理服务器

Installation

npm install react-native-mcheck-proxy

Usage

import * as McheckProxy from "react-native-mcheck-proxy";

// ...

//vpn检测(同步)
const detectVPN = CheckProxy.detectVPNSync();
//代理ip检测(同步)
const detectProxy = CheckProxy.detectProxySync();
//vpn检测
const detectVPN = await CheckProxy.detectVPNSync();
//代理ip检测
const detectProxy =  await CheckProxy.detectProxySync();

Package Sidebar

Install

npm i react-native-mcheck-proxy

Weekly Downloads

3

Version

1.0.5

License

MIT

Unpacked Size

88.1 kB

Total Files

18

Last publish

Collaborators

  • bashen1