@@ -13,8 +13,6 @@ import { Callback, ns } from '../../utils';
13
13
import { AuthContext , AuthProvider } from './auth_provider' ;
14
14
15
15
type MechanismProperties = {
16
- // TODO: Remove in 5.0
17
- gssapiCanonicalizeHostName ?: boolean ;
18
16
CANONICALIZE_HOST_NAME ?: boolean ;
19
17
SERVICE_NAME ?: string ;
20
18
SERVICE_REALM ?: string ;
@@ -176,17 +174,16 @@ function performGssapiCanonicalizeHostName(
176
174
mechanismProperties : MechanismProperties ,
177
175
callback : Callback < string >
178
176
) : void {
179
- if (
180
- ! mechanismProperties . gssapiCanonicalizeHostName &&
181
- ! mechanismProperties . CANONICALIZE_HOST_NAME
182
- ) return callback ( undefined , host ) ;
177
+ if ( ! mechanismProperties . CANONICALIZE_HOST_NAME ) return callback ( undefined , host ) ;
183
178
184
179
// Attempt to resolve the host name
185
180
dns . resolveCname ( host , ( err , r ) => {
186
181
if ( err ) return callback ( err ) ;
187
182
188
183
// Get the first resolve host id
189
184
if ( Array . isArray ( r ) && r . length > 0 ) {
185
+ /* eslint no-console: 0 */
186
+ console . log ( '######################' , host , r ) ;
190
187
return callback ( undefined , r [ 0 ] ) ;
191
188
}
192
189
0 commit comments