2019-08-17 13:47:43 +08:00
|
|
|
//
|
|
|
|
// ProxySettingTool.h
|
|
|
|
// com.west2online.ClashX.ProxyConfigHelper
|
|
|
|
//
|
|
|
|
// Created by yichengchen on 2019/8/17.
|
|
|
|
// Copyright © 2019 west2online. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface ProxySettingTool : NSObject
|
|
|
|
|
2020-12-19 19:15:19 +08:00
|
|
|
- (void)enableProxyWithport:(int)port socksPort:(int)socksPort
|
|
|
|
pacUrl:(NSString *)pacUrl
|
2022-11-20 10:36:04 +08:00
|
|
|
filterInterface:(BOOL)filterInterface
|
|
|
|
ignoreList:(NSArray<NSString *>*)ignoreList;
|
|
|
|
|
2020-12-19 19:15:19 +08:00
|
|
|
- (void)disableProxyWithfilterInterface:(BOOL)filterInterFace;
|
2019-08-18 11:20:11 +08:00
|
|
|
|
2023-02-20 14:08:44 +08:00
|
|
|
- (void)restoreProxySetting:(NSDictionary *)savedInfo
|
2020-12-19 19:15:19 +08:00
|
|
|
currentPort:(int)port
|
|
|
|
currentSocksPort:(int)socksPort
|
|
|
|
filterInterface:(BOOL)filterInterface;
|
2019-08-18 11:20:11 +08:00
|
|
|
+ (NSMutableDictionary<NSString *,NSDictionary *> *)currentProxySettings;
|
|
|
|
|
2019-08-17 13:47:43 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|