Giter VIP home page Giter VIP logo

Comments (4)

ColinShorts avatar ColinShorts commented on July 25, 2024

This should do the trick for the change to ifconfig:

$ diff library/exten-server_info.php /var/www/daloradius/library/exten-server_info.php 
206c206,209
< 	} else {
---
> 	} elseif (preg_match("/inet [0-9\.]*/i", $ifip, $match)) {
>                 $match = explode(" ", $match[0]);
>                 return $match[1];
>         } else {
223a227,229
>         } elseif (preg_match("/ether [0-9A-F:]*/i", $ifmac, $match)) {
>                 $match = explode(" ", $match[0]);
>                 return $match[1];
242a249,251
>         } elseif (preg_match("/netmask [0-9\.]*/i", $ifmask, $match)) {
>                 $match = explode(" ", $match[0]);
>                 return $match[1];

from daloradius.

lirantal avatar lirantal commented on July 25, 2024

@ColinShorts thanks! would you be able to submit a small PR with the change?
I'll be happy to merge it in quickly!

from daloradius.

ColinShorts avatar ColinShorts commented on July 25, 2024

PR #62 submitted, hope this helps.

from daloradius.

lirantal avatar lirantal commented on July 25, 2024

Thanks!

from daloradius.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.