Skip to content

Commit

Permalink
Change the method to access client address (#10)
Browse files Browse the repository at this point in the history
* change get deviceip method

* add version
  • Loading branch information
AddisonGao authored Nov 23, 2018
1 parent 271b6ec commit 6e6688b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lyrebird_api_coverage/proxy/proxy_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def handle(self, handler_context: HandlerContext):
path = format_url.format_api(short_url).lower()
# 获取handler_context.id,为前端展开看详情准备
path_id = handler_context.id
device_ip = handler_context.request.headers.get('lyrebird.device.ip')
device_ip = handler_context.client_address

# 当请求过来的时候,base还没有init,需要进行init处理
if not app_context.base_list:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='lyrebird-api-coverage',
version='0.2.5',
version='0.2.6',
packages=['lyrebird_api_coverage'],
url='https://github.com/meituan/lyrebird-api-coverage',
author='HBQA',
Expand Down

0 comments on commit 6e6688b

Please sign in to comment.