zbx-sadman / unifi_proxy

Fast client-server version of UniFi Miner
45 stars 21 forks source link

Use JSON::MaybeXS and IO::Socket::INET6 #10

Closed overhacked closed 7 years ago

overhacked commented 7 years ago

Make JSON work in more environments (e.g. where JSON::XS isn't available) and enable IPv6.

zbx-sadman commented 7 years ago

Hello Ross,

Tanx for UniFi Proxy enhancement.

Seems that JSON::MaybeXS is useful. When i read about IO::Socket::INET6 i have found this article: https://www.perl.org/about/whitepapers/perl-ipv6.html . May be try to use IO::Socket::IP instead IO::Socket::INET ? Just i haven't IPv6 system for testing.

zbx-sadman commented 7 years ago

I have changed JSON::XS to JSON module, because have no found JSON::MaybeXS on my Wheezy repository. This Perl Core module can point Perl to CPanel::JSON::JS https://metacpan.org/pod/JSON#CHOOSING-BACKEND

And IO::Socket::INET was changed to other Core Module - IO::Socket::IP to get able IPv6 support. But i can't make full test because have no IPv6 in my systems.

Main branch will be updated after short testing.

Tanx for cooperation.

zbx-sadman commented 7 years ago

All offers released in v1.3.4 and commit https://github.com/zbx-sadman/unifi_proxy/commit/c46e6c6df94c662edd59e9aa32a8bd560b162759