I don’t know, if it will be strong enough. The weakest point is between the M6 thread and the M10 section. For the long term, you should grab one of these fittings: https://goo.gl/K0rPgI
Download
Download this 3D Model on: https://www.thingiverse.com/thing:2208165