ClashX/ProxyConfigHelper/ProxySettingTool.h

31 lines
851 B
C
Raw Permalink Normal View History

//
// 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
- (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;
- (void)disableProxyWithfilterInterface:(BOOL)filterInterFace;
2023-02-20 14:08:44 +08:00
- (void)restoreProxySetting:(NSDictionary *)savedInfo
currentPort:(int)port
currentSocksPort:(int)socksPort
filterInterface:(BOOL)filterInterface;
+ (NSMutableDictionary<NSString *,NSDictionary *> *)currentProxySettings;
@end
NS_ASSUME_NONNULL_END