Skip to content

Commit ffb554a

Browse files
committed
cleanup
1 parent c7de340 commit ffb554a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/ga.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const task = ({clientId, path, headers, context}) =>
3737
cm: 'organic',
3838
de: 'UTF-8', //document encoding
3939
ua: headers['user-agent'],
40-
uip: headers['client-ip'] || headers['remoteAddress']
40+
uip: headers['client-ip'] || headers['x-real-ip'] || headers['remoteAddress'] || '127.0.0.1'
4141
};
4242

4343
if (headers['x-country'])

0 commit comments

Comments
 (0)