Skip to content

Commit 29ec4ce

Browse files
committed
Expose os.networkInterfaces to the UI
1 parent 63f13fd commit 29ec4ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/httptoolkit-server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as _ from 'lodash';
2+
import * as os from 'os';
23
import * as events from 'events';
34
import { GraphQLServer } from 'graphql-yoga';
45
import * as Express from 'express';
@@ -16,6 +17,7 @@ const typeDefs = `
1617
version: String!
1718
config: InterceptionConfig!
1819
interceptors: [Interceptor!]!
20+
networkInterfaces: Json
1921
}
2022
2123
type Mutation {
@@ -59,7 +61,8 @@ const buildResolvers = (
5961
interceptors: () => _.values(interceptors),
6062
config: () => ({
6163
certificatePath: config.https.certPath
62-
})
64+
}),
65+
networkInterfaces: () => os.networkInterfaces()
6366
},
6467

6568
Mutation: {

0 commit comments

Comments
 (0)