Skip to content

Commit

Permalink
bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
v1rtl committed Jan 28, 2023
1 parent 58e6c8a commit e12d68d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const s = new Server({

request.conn = conn

const res = proxyaddr(request, ['localhost'])
const res = proxyaddr(request, ['127.0.0.1'])

return new Response(res)
}
Expand Down
8 changes: 5 additions & 3 deletions example.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Server } from 'https://deno.land/std@0.118.0/http/server.ts'
import { Server } from 'https://deno.land/std@0.130.0/http/server.ts'

import { proxyaddr, RequestWithConnection } from './mod.ts'

Expand All @@ -8,8 +8,10 @@ const s = new Server({

request.conn = conn

const res = proxyaddr(request, ['localhost'])
const res = proxyaddr(request, ['127.0.0.1', '::1'])

return new Response(res)
}
},
port: 3000
})
s.listenAndServe()
6 changes: 3 additions & 3 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// deno-lint-ignore-file
import { default as ipaddr, IPv4, IPv6 } from 'https://cdn.skypack.dev/ipaddr.js'
import { forwarded } from 'https://deno.land/x/[email protected].1/mod.ts'
import type { RequestWithConnection } from 'https://deno.land/x/[email protected].1/mod.ts'
import { default as ipaddr, IPv4, IPv6 } from 'https://esm.sh/ipaddr.js@2.0.1'
import { forwarded } from 'https://deno.land/x/[email protected].3/mod.ts'
import type { RequestWithConnection } from 'https://deno.land/x/[email protected].3/mod.ts'

export type { RequestWithConnection }

Expand Down

0 comments on commit e12d68d

Please sign in to comment.