13 lines
276 B
TypeScript
13 lines
276 B
TypeScript
import { txEnv, txHostConfig } from '@core/globalData';
|
|
import got from 'got';
|
|
|
|
export default got.extend({
|
|
timeout: {
|
|
request: 5000
|
|
},
|
|
headers: {
|
|
'User-Agent': `txAdmin ${txEnv.txaVersion}`,
|
|
},
|
|
localAddress: txHostConfig.netInterface,
|
|
});
|