"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = createSocksProxyAgent;

var _socksProxyAgent = _interopRequireDefault(require("socks-proxy-agent"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * External dependencies
 */

/**
 * Internal dependencies
 */
function createSocksProxyAgent() {
  if (!process.env.VIP_PROXY) {
    return null;
  }

  return new _socksProxyAgent.default(process.env.VIP_PROXY);
}