Pipe-flange adaptor