mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
print the rpc access list error message to Console
This commit is contained in:
@@ -671,8 +671,13 @@
|
||||
|
||||
NSString * string = [components componentsJoinedByString: @","];
|
||||
|
||||
#warning check for an error!
|
||||
tr_sessionSetRPCACL(fHandle, [string UTF8String], NULL);
|
||||
char ** error = (char **)tr_malloc(sizeof(char **));
|
||||
if (tr_sessionSetRPCACL(fHandle, [string UTF8String], error))
|
||||
{
|
||||
NSLog([NSString stringWithUTF8String: *error]);
|
||||
tr_free(*error);
|
||||
}
|
||||
tr_free(error);
|
||||
}
|
||||
|
||||
- (void) addRemoveRPCIP: (id) sender
|
||||
|
||||
Reference in New Issue
Block a user