connect-script double call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> That's correct, and I couldn't avoid it. I've documented it as:
> "Note that a "disconnect" call will not contain the IP information
> of the client, if the client has reconnected with a cookie (and thus
> re-used its IP addresses)."
>
> and since I documented it, it is no longer a bug :) Seriously now, I
> couldn't figure a better behavior. Sending the IP back would have been
> wrong, as it is being used by another session.

This may cause some problem like double the iptables rules in system :)
>
>> BTW, is it possible to send user's traffic bytes info in disconnect?
>
> You could use ifconfig on the device of the user. The stats of the tun
> device are the stats of the user. This is how occtl reports the traffic
> bytes.

Yes, but the device gone before the disconnect script, so error would
be: "vpns1: error fetching interface information: Device not found"

>
> regards,
> Nikos
>
>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux