Thread
:
mediaserv: on-demand video transcoding
View Single Post
rm_you
2007-10-27 , 22:23
Posts: 98 | Thanked: 189 times | Joined on Jul 2007 @ San Antonio, TX
#
40
I'm not sure if this utility is installed on all distributions of linux by default (I would hope something similar is, at least) but this seems like a better way to solve the IP detection issue...
I commented/removed lines 78,79,80 and added the following:
Code:
$ip = `tracepath google.com | head -n 1 | awk '{ print \$2 }'`;
It should grab the ip for the very first hop towards the outside world (IE, your external facing network interface). I then added an unless($URL) just like the IP one, and am setting that manually. It seems to work well.
Anyone else have any comments on this?
Last edited by rm_you; 2007-10-27 at
22:29
.
Quote & Reply
|
rm_you
View Public Profile
Send a private message to rm_you
Find all posts by rm_you