Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正监听地址为IPv6时无法获取传入IP地址 #157

Merged
merged 1 commit into from
Jan 16, 2024
Merged

修正监听地址为IPv6时无法获取传入IP地址 #157

merged 1 commit into from
Jan 16, 2024

Conversation

UjuiUjuMandan
Copy link
Contributor

@UjuiUjuMandan UjuiUjuMandan commented Jan 15, 2024

@URenko 当监听地址为IPv6地址,如::1时,有任何传入连接时Accesser会无法获取客户端IP。

2024-01-15 23:45:40 ERROR    asyncio: Task exception was never retrieved
future: <Task finished name='Task-22' coro=<handle() done, defined at /Users/[redacted]/Accesser/accesser/__init__.py:98> exception=ValueError('too many values to unpack (expected 2)')>
Traceback (most recent call last):
  File "/Users/v/Accesser/accesser/__init__.py", line 104, in handle
    i_addr, i_port = writer.get_extra_info('peername')
    ^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 2)

@URenko URenko merged commit cd63765 into URenko:master Jan 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants