MCPcopy Index your code
hub / github.com/nodejs/node / getPreferredAddressPolicy

Function getPreferredAddressPolicy

lib/internal/quic/quic.js:5142–5149  ·  view source on GitHub ↗
(policy = 'default')

Source from the content-addressed store, hash-verified

5140}
5141
5142function getPreferredAddressPolicy(policy = 'default') {
5143 switch (policy) {
5144 case 'use': return kPreferredAddressUse;
5145 case 'ignore': return kPreferredAddressIgnore;
5146 case 'default': return kPreferredAddressDefault;
5147 }
5148 throw new ERR_INVALID_ARG_VALUE('options.preferredAddressPolicy', policy);
5149}
5150
5151/**
5152 * @param {SessionOptions} options

Callers 1

processSessionOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…