fix AccessAuthorizer not working because of checking for string not buffer
AccessAuthorizer should work with alternative socket type