mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-10-21 06:54:41 +00:00
解决 macOS 10.12 下 PAC 模式下Safari 或 Twitter 客户端 tweetbot客户端不能FQ的问题 https://github.com/qiuyuzhou/ShadowsocksX-NG/issues/30 PS 手头没有 macOS 10.12 的机器,麻烦有的请帮忙测试一下 或者可以从 https://github.com/qinyuhang/ShadowsocksX-NG/tree/webserver 下载去 Xcode build 一下
28 lines
533 B
Objective-C
28 lines
533 B
Objective-C
//
|
|
// ProxyConfHelper.h
|
|
// ShadowsocksX-NG
|
|
//
|
|
// Created by 邱宇舟 on 16/6/10.
|
|
// Copyright © 2016年 qiuyuzhou. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <GCDWebServer/GCDWebServer.h>
|
|
#import <GCDWebServer/GCDWebServerDataResponse.h>
|
|
|
|
@interface ProxyConfHelper : NSObject
|
|
|
|
+ (void)install;
|
|
|
|
+ (void)enablePACProxy:(NSString*) PACFilePath;
|
|
|
|
+ (void)enableGlobalProxy;
|
|
|
|
+ (void)disableProxy:(NSString*) PACFilePath;
|
|
|
|
+ (NSString*)startPACServer:(NSString*) PACFilePath;
|
|
|
|
+ (void)stopPACServer;
|
|
|
|
@end
|