Feature optimize:           return real attachment type now.

Signed-off-by: Euhow <euhowzy@gmail.com>