• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cameri / nostream / 24609919997

18 Apr 2026 05:23PM UTC coverage: 30.829% (-32.0%) from 62.807%
24609919997

Pull #454

github

web-flow
Merge c337d7af3 into 26bcdd51d
Pull Request #454: fix: OpenNode callback accepts unauthenticated requests

268 of 1385 branches covered (19.35%)

Branch coverage included in aggregate %.

29 of 41 new or added lines in 3 files covered. (70.73%)

976 existing lines in 41 files now uncovered.

1164 of 3260 relevant lines covered (35.71%)

5.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

76.92
/src/utils/http.ts
1
import { IncomingMessage } from 'http'
2

3
import { Settings } from '../@types/settings'
4

5
export const getRemoteAddress = (request: IncomingMessage, settings: Settings): string => {
1✔
6
  let header: string | undefined
7
  // TODO: Remove deprecation warning
8
  if ('network' in settings && 'remote_ip_header' in settings.network) {
98!
UNCOV
9
    console.warn(`WARNING: Setting network.remote_ip_header is deprecated and will be removed in a future version.
×
10
        Use network.remoteIpHeader instead.`)
UNCOV
11
    header = settings.network['remote_ip_header'] as string
×
12
  } else {
13
    header = settings.network.remoteIpHeader as string
98✔
14
  }
15

16
  const result = (request.headers[header] ?? request.socket.remoteAddress) as string
98✔
17

18
  return result.split(',')[0]
98✔
19
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc