Networking / Aliases question
Posted: Sun Jan 17, 2010 3:33 am
Hello,
This is my first post
I just installed Amahi on my Fedora12 box home and gotta say "I LOVE IT"...
One thing that I came across was when I tried to add my external address to a new alias "www".
My external IP included 255 and the aliases page didn't allow me to add it
I had to do this change in /var/hda/platform/html/app/controllers/aliases_controller.rb
Any reason why ip segments check is just going up to 254 by default?
This is my first post

I just installed Amahi on my Fedora12 box home and gotta say "I LOVE IT"...
One thing that I came across was when I tried to add my external address to a new alias "www".
My external IP included 255 and the aliases page didn't allow me to add it

I had to do this change in /var/hda/platform/html/app/controllers/aliases_controller.rb
Code: Select all
197c197
< [$1, $2, $3, $4].each { |ip| return false if ip.to_i > 255 }
---
> [$1, $2, $3, $4].each { |ip| return false if ip.to_i > 254 }
210c210
< return true unless v < 0 or v > 255
---
> return true unless v < 0 or v > 254