We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63f13fd commit 29ec4ceCopy full SHA for 29ec4ce
src/httptoolkit-server.ts
@@ -1,4 +1,5 @@
1
import * as _ from 'lodash';
2
+import * as os from 'os';
3
import * as events from 'events';
4
import { GraphQLServer } from 'graphql-yoga';
5
import * as Express from 'express';
@@ -16,6 +17,7 @@ const typeDefs = `
16
17
version: String!
18
config: InterceptionConfig!
19
interceptors: [Interceptor!]!
20
+ networkInterfaces: Json
21
}
22
23
type Mutation {
@@ -59,7 +61,8 @@ const buildResolvers = (
59
61
interceptors: () => _.values(interceptors),
60
62
config: () => ({
63
certificatePath: config.https.certPath
- })
64
+ }),
65
+ networkInterfaces: () => os.networkInterfaces()
66
},
67
68
Mutation: {
0 commit comments