Code Monkey home page Code Monkey logo

Comments (4)

pprindeville avatar pprindeville commented on June 15, 2024

I'm willing to write the code myself (though I can only easily test on Linux) but don't want to start the effort if it's already known that the feature won't be accepted...

from pam_radius.

alandekok avatar alandekok commented on June 15, 2024

from pam_radius.

pprindeville avatar pprindeville commented on June 15, 2024

Well, yes, you could name your host eth0 but how often does that happen? You could ioctl(SIOCGIFADDR) on the name first, and if that fails, do a gethostbyname() on it instead.

from pam_radius.

alandekok avatar alandekok commented on June 15, 2024

It's not about how often it happens, it's about doing things clearly and correctly so that we know the software is correct.

It costs essentially nothing to add another configuration parameter. The code could look for source_interface, and if found use that. If not found, use source_ip.

This is not really any more code than looking up the interface by name, and if not found, looking the name up as a hostname.

from pam_radius.

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.