mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
add a note about wildcards to the rpc prefs
This commit is contained in:
@@ -743,7 +743,7 @@
|
||||
NSArray * components = [object componentsSeparatedByString: @"."];
|
||||
NSMutableArray * newComponents = [NSMutableArray arrayWithCapacity: 4];
|
||||
|
||||
//verify ip
|
||||
//create better-formatted ip string
|
||||
if ([components count] == 4)
|
||||
{
|
||||
NSEnumerator * enumerator = [components objectEnumerator];
|
||||
@@ -759,7 +759,7 @@
|
||||
|
||||
NSString * newIP = [newComponents componentsJoinedByString: @"."];
|
||||
|
||||
//revert if ip is not valid
|
||||
//verify ip string
|
||||
if (!tr_sessionTestRPCACL(fHandle, [[@"+" stringByAppendingString: newIP] UTF8String], NULL))
|
||||
{
|
||||
NSDictionary * newDict = [NSDictionary dictionaryWithObjectsAndKeys: newIP, @"IP",
|
||||
|
||||
Reference in New Issue
Block a user