WildPHP / irc-bot

A simple and modular PHP IRC bot
MIT License
84 stars 24 forks source link

Add option to bind the bot to a specific address/interface #20

Closed Amunak closed 7 years ago

Amunak commented 9 years ago

This requires dropping this fsockopen in favor of stream_socket_client with socket context.

NanoSector commented 9 years ago

Dropped the fsockopen, but haven't yet looked at socket context.

NanoSector commented 7 years ago

As per https://github.com/WildPHP/Wild-IRC-Bot/commit/b342d59cd7366d8c7d15d7a6a73ef04a06cb3d05 you can now pass context socket options to the Connector component. This allows you to bind the TCP connection to a specific interface.