You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
628 B

  1. --- a/osdep/Binder.hpp
  2. +++ b/osdep/Binder.hpp
  3. @@ -440,9 +440,9 @@ class Binder {
  4. }
  5. #endif // __LINUX__
  6. if (_bindingCount < ZT_BINDER_MAX_BINDINGS) {
  7. - _bindings[_bindingCount].udpSock = udps;
  8. - _bindings[_bindingCount].tcpListenSock = tcps;
  9. - _bindings[_bindingCount].address = ii->first;
  10. + _bindings[(unsigned int)_bindingCount].udpSock = udps;
  11. + _bindings[(unsigned int)_bindingCount].tcpListenSock = tcps;
  12. + _bindings[(unsigned int)_bindingCount].address = ii->first;
  13. phy.setIfName(udps, (char*)ii->second.c_str(), (int)ii->second.length());
  14. ++_bindingCount;
  15. }