diff --git a/ProxyConfigHelper/ProxyConfigHelper.m b/ProxyConfigHelper/ProxyConfigHelper.m index 1d8b6dd..773bd3d 100644 --- a/ProxyConfigHelper/ProxyConfigHelper.m +++ b/ProxyConfigHelper/ProxyConfigHelper.m @@ -117,7 +117,7 @@ ProxyConfigRemoteProcessProtocol error:(stringReplyBlock)reply { dispatch_async(dispatch_get_main_queue(), ^{ ProxySettingTool *tool = [ProxySettingTool new]; - [tool restoreProxySettint:dict currentPort:port currentSocksPort:socksPort filterInterface:filterInterface]; + [tool restoreProxySetting:dict currentPort:port currentSocksPort:socksPort filterInterface:filterInterface]; reply(nil); }); } diff --git a/ProxyConfigHelper/ProxySettingTool.h b/ProxyConfigHelper/ProxySettingTool.h index 737b1ae..2df8215 100644 --- a/ProxyConfigHelper/ProxySettingTool.h +++ b/ProxyConfigHelper/ProxySettingTool.h @@ -19,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)disableProxyWithfilterInterface:(BOOL)filterInterFace; -- (void)restoreProxySettint:(NSDictionary *)savedInfo +- (void)restoreProxySetting:(NSDictionary *)savedInfo currentPort:(int)port currentSocksPort:(int)socksPort filterInterface:(BOOL)filterInterface; diff --git a/ProxyConfigHelper/ProxySettingTool.m b/ProxyConfigHelper/ProxySettingTool.m index 028b260..7a56144 100644 --- a/ProxyConfigHelper/ProxySettingTool.m +++ b/ProxyConfigHelper/ProxySettingTool.m @@ -47,7 +47,7 @@ }]; } -- (void)restoreProxySettint:(NSDictionary *)savedInfo +- (void)restoreProxySetting:(NSDictionary *)savedInfo currentPort:(int)port currentSocksPort:(int)socksPort filterInterface:(BOOL)filterInterface{